POST api/Program/ODProgramDetails

Request Information

URI Parameters

None.

Body Parameters

OnDutyProgramDetailsVO
NameDescriptionTypeAdditional information
ON_DUTY_PROGRAM_ID

integer

None.

ON_Duty_Master_ID

integer

None.

Emp_Device_ID

integer

None.

Start_Program_Time

date

None.

Start_Program_Location_Name

string

None.

Start_Program_Location_Lat

string

None.

Start_Program_Location_Long

string

None.

Start_Program_Location_Address

string

None.

Purpose_id

integer

None.

Customer

string

None.

Purpose_Description

string

None.

End_Program_Time

date

None.

End_Program_Location_Name

string

None.

End_Program_Location_Lat

string

None.

End_Program_Location_Long

string

None.

End_Program_Location_Address

string

None.

Program_Duration

date

None.

Active

integer

None.

Created_Date

date

None.

Created_By

integer

None.

Modified_Date

date

None.

Modified_By

integer

None.

Type

string

None.

Emp_ID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ON_DUTY_PROGRAM_ID": 1,
  "ON_Duty_Master_ID": 2,
  "Emp_Device_ID": 3,
  "Start_Program_Time": "2024-11-28T14:07:46.8330902+05:30",
  "Start_Program_Location_Name": "sample string 5",
  "Start_Program_Location_Lat": "sample string 6",
  "Start_Program_Location_Long": "sample string 7",
  "Start_Program_Location_Address": "sample string 8",
  "Purpose_id": 9,
  "Customer": "sample string 10",
  "Purpose_Description": "sample string 11",
  "End_Program_Time": "2024-11-28T14:07:46.8330902+05:30",
  "End_Program_Location_Name": "sample string 13",
  "End_Program_Location_Lat": "sample string 14",
  "End_Program_Location_Long": "sample string 15",
  "End_Program_Location_Address": "sample string 16",
  "Program_Duration": "2024-11-28T14:07:46.8330902+05:30",
  "Active": 18,
  "Created_Date": "2024-11-28T14:07:46.8330902+05:30",
  "Created_By": 20,
  "Modified_Date": "2024-11-28T14:07:46.8330902+05:30",
  "Modified_By": 22,
  "Type": "sample string 23",
  "Emp_ID": 24
}

application/xml, text/xml

Sample:
<OnDutyProgramDetailsVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModelLayer">
  <Active>18</Active>
  <Created_By>20</Created_By>
  <Created_Date>2024-11-28T14:07:46.8330902+05:30</Created_Date>
  <Customer>sample string 10</Customer>
  <Emp_Device_ID>3</Emp_Device_ID>
  <Emp_ID>24</Emp_ID>
  <End_Program_Location_Address>sample string 16</End_Program_Location_Address>
  <End_Program_Location_Lat>sample string 14</End_Program_Location_Lat>
  <End_Program_Location_Long>sample string 15</End_Program_Location_Long>
  <End_Program_Location_Name>sample string 13</End_Program_Location_Name>
  <End_Program_Time>2024-11-28T14:07:46.8330902+05:30</End_Program_Time>
  <Modified_By>22</Modified_By>
  <Modified_Date>2024-11-28T14:07:46.8330902+05:30</Modified_Date>
  <ON_DUTY_PROGRAM_ID>1</ON_DUTY_PROGRAM_ID>
  <ON_Duty_Master_ID>2</ON_Duty_Master_ID>
  <Program_Duration>2024-11-28T14:07:46.8330902+05:30</Program_Duration>
  <Purpose_Description>sample string 11</Purpose_Description>
  <Purpose_id>9</Purpose_id>
  <Start_Program_Location_Address>sample string 8</Start_Program_Location_Address>
  <Start_Program_Location_Lat>sample string 6</Start_Program_Location_Lat>
  <Start_Program_Location_Long>sample string 7</Start_Program_Location_Long>
  <Start_Program_Location_Name>sample string 5</Start_Program_Location_Name>
  <Start_Program_Time>2024-11-28T14:07:46.8330902+05:30</Start_Program_Time>
  <Type>sample string 23</Type>
</OnDutyProgramDetailsVO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'OnDutyProgramDetailsVO'.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Data

Object

None.

Message

string

None.

ErrorCode

integer

None.

Data1

Object

None.

Emp_ID

string

None.

On_duty_master_ID

integer

None.

ODStatus

Object

None.

ODDetails

Object

None.

UserDetails

Object

None.

ON_DUTY_PROGRAM_ID

integer

None.

settings

Object

None.

IsProgramStatus

boolean

None.

ODStartTime

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {},
  "Message": "sample string 3",
  "ErrorCode": 4,
  "Data1": {},
  "Emp_ID": "sample string 6",
  "On_duty_master_ID": 7,
  "ODStatus": {},
  "ODDetails": {},
  "UserDetails": {},
  "ON_DUTY_PROGRAM_ID": 11,
  "settings": {},
  "IsProgramStatus": true,
  "ODStartTime": "sample string 14"
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModelLayer">
  <Data />
  <Data1 />
  <Emp_ID>sample string 6</Emp_ID>
  <ErrorCode>4</ErrorCode>
  <IsProgramStatus>true</IsProgramStatus>
  <Message>sample string 3</Message>
  <ODDetails />
  <ODStartTime>sample string 14</ODStartTime>
  <ODStatus />
  <ON_DUTY_PROGRAM_ID>11</ON_DUTY_PROGRAM_ID>
  <On_duty_master_ID>7</On_duty_master_ID>
  <Success>true</Success>
  <UserDetails />
  <settings />
</ResponseModel>