POST api/AdminUser/EnableDisable

Request Information

URI Parameters

None.

Body Parameters

EmployeeMasterVO
NameDescriptionTypeAdditional information
User_id

integer

None.

Emp_id

integer

None.

Name

string

None.

Password

string

None.

Designation

string

None.

Department

string

None.

Location

string

None.

Company

string

None.

Date_of_joining

date

None.

Photo_url

string

None.

QR_Code_verified

integer

None.

QR_Code_Verified_date

date

None.

Active

integer

None.

Created_by

integer

None.

Created_Date

date

None.

Modified_by

integer

None.

Modified_Date

date

None.

QR_Code

string

None.

QR_CODE_URL

string

None.

EmpDeviceNumber

Collection of OnDutyMasterVO

None.

DEVICE_TOKEN

string

None.

FromDate

date

None.

ToDate

date

None.

DeviceNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "User_id": 1,
  "Emp_id": 2,
  "Name": "sample string 3",
  "Password": "sample string 4",
  "Designation": "sample string 5",
  "Department": "sample string 6",
  "Location": "sample string 7",
  "Company": "sample string 8",
  "Date_of_joining": "2024-11-28T14:06:40.2268617+05:30",
  "Photo_url": "sample string 10",
  "QR_Code_verified": 11,
  "QR_Code_Verified_date": "2024-11-28T14:06:40.2268617+05:30",
  "Active": 13,
  "Created_by": 14,
  "Created_Date": "2024-11-28T14:06:40.2268617+05:30",
  "Modified_by": 16,
  "Modified_Date": "2024-11-28T14:06:40.2268617+05:30",
  "QR_Code": "sample string 18",
  "QR_CODE_URL": "sample string 19",
  "EmpDeviceNumber": [
    {
      "On_duty_master_ID": 1,
      "User_ID": 2,
      "Emp_ID": 3,
      "Emp_Device_ID": "sample string 4",
      "On_Start_Time": "2024-11-28T14:06:40.2268617+05:30",
      "On_Start_Location_Name": "sample string 6",
      "On_Start_Location_Lat": "sample string 7",
      "On_Start_Location_Long": "sample string 8",
      "On_Start_Location_Address": "sample string 9",
      "OD_End_Time": "2024-11-28T14:06:40.2268617+05:30",
      "OD_End_Location_Name": "sample string 11",
      "OD_End_Location_Lat": "sample string 12",
      "OD_End_Location_Long": "sample string 13",
      "OD_End_Location_Address": "sample string 14",
      "OnDuty_Duration": 15,
      "Active": 16,
      "Created_By": 17,
      "Created_Date": "2024-11-28T14:06:40.2268617+05:30",
      "Modified_by": 19,
      "Modified_Date": "2024-11-28T14:06:40.2268617+05:30",
      "Type": "sample string 21",
      "Department": "sample string 22",
      "Location": "sample string 23",
      "FromDate": "2024-11-28T14:06:40.2268617+05:30",
      "ToDate": "2024-11-28T14:06:40.2268617+05:30",
      "Name": "sample string 26",
      "ODNextRun": "2024-11-28T14:06:40.2268617+05:30"
    },
    {
      "On_duty_master_ID": 1,
      "User_ID": 2,
      "Emp_ID": 3,
      "Emp_Device_ID": "sample string 4",
      "On_Start_Time": "2024-11-28T14:06:40.2268617+05:30",
      "On_Start_Location_Name": "sample string 6",
      "On_Start_Location_Lat": "sample string 7",
      "On_Start_Location_Long": "sample string 8",
      "On_Start_Location_Address": "sample string 9",
      "OD_End_Time": "2024-11-28T14:06:40.2268617+05:30",
      "OD_End_Location_Name": "sample string 11",
      "OD_End_Location_Lat": "sample string 12",
      "OD_End_Location_Long": "sample string 13",
      "OD_End_Location_Address": "sample string 14",
      "OnDuty_Duration": 15,
      "Active": 16,
      "Created_By": 17,
      "Created_Date": "2024-11-28T14:06:40.2268617+05:30",
      "Modified_by": 19,
      "Modified_Date": "2024-11-28T14:06:40.2268617+05:30",
      "Type": "sample string 21",
      "Department": "sample string 22",
      "Location": "sample string 23",
      "FromDate": "2024-11-28T14:06:40.2268617+05:30",
      "ToDate": "2024-11-28T14:06:40.2268617+05:30",
      "Name": "sample string 26",
      "ODNextRun": "2024-11-28T14:06:40.2268617+05:30"
    }
  ],
  "DEVICE_TOKEN": "sample string 20",
  "FromDate": "2024-11-28T14:06:40.2268617+05:30",
  "ToDate": "2024-11-28T14:06:40.2268617+05:30",
  "DeviceNumber": "sample string 23"
}

application/xml, text/xml

Sample:
<EmployeeMasterVO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ModelLayer">
  <Active>13</Active>
  <Company>sample string 8</Company>
  <Created_Date>2024-11-28T14:06:40.2268617+05:30</Created_Date>
  <Created_by>14</Created_by>
  <DEVICE_TOKEN>sample string 20</DEVICE_TOKEN>
  <Date_of_joining>2024-11-28T14:06:40.2268617+05:30</Date_of_joining>
  <Department>sample string 6</Department>
  <Designation>sample string 5</Designation>
  <DeviceNumber>sample string 23</DeviceNumber>
  <EmpDeviceNumber>
    <OnDutyMasterVO>
      <Active>16</Active>
      <Created_By>17</Created_By>
      <Created_Date>2024-11-28T14:06:40.2268617+05:30</Created_Date>
      <Department>sample string 22</Department>
      <Emp_Device_ID>sample string 4</Emp_Device_ID>
      <Emp_ID>3</Emp_ID>
      <FromDate>2024-11-28T14:06:40.2268617+05:30</FromDate>
      <Location>sample string 23</Location>
      <Modified_Date>2024-11-28T14:06:40.2268617+05:30</Modified_Date>
      <Modified_by>19</Modified_by>
      <Name>sample string 26</Name>
      <ODNextRun>2024-11-28T14:06:40.2268617+05:30</ODNextRun>
      <OD_End_Location_Address>sample string 14</OD_End_Location_Address>
      <OD_End_Location_Lat>sample string 12</OD_End_Location_Lat>
      <OD_End_Location_Long>sample string 13</OD_End_Location_Long>
      <OD_End_Location_Name>sample string 11</OD_End_Location_Name>
      <OD_End_Time>2024-11-28T14:06:40.2268617+05:30</OD_End_Time>
      <OnDuty_Duration>15</OnDuty_Duration>
      <On_Start_Location_Address>sample string 9</On_Start_Location_Address>
      <On_Start_Location_Lat>sample string 7</On_Start_Location_Lat>
      <On_Start_Location_Long>sample string 8</On_Start_Location_Long>
      <On_Start_Location_Name>sample string 6</On_Start_Location_Name>
      <On_Start_Time>2024-11-28T14:06:40.2268617+05:30</On_Start_Time>
      <On_duty_master_ID>1</On_duty_master_ID>
      <ToDate>2024-11-28T14:06:40.2268617+05:30</ToDate>
      <Type>sample string 21</Type>
      <User_ID>2</User_ID>
    </OnDutyMasterVO>
    <OnDutyMasterVO>
      <Active>16</Active>
      <Created_By>17</Created_By>
      <Created_Date>2024-11-28T14:06:40.2268617+05:30</Created_Date>
      <Department>sample string 22</Department>
      <Emp_Device_ID>sample string 4</Emp_Device_ID>
      <Emp_ID>3</Emp_ID>
      <FromDate>2024-11-28T14:06:40.2268617+05:30</FromDate>
      <Location>sample string 23</Location>
      <Modified_Date>2024-11-28T14:06:40.2268617+05:30</Modified_Date>
      <Modified_by>19</Modified_by>
      <Name>sample string 26</Name>
      <ODNextRun>2024-11-28T14:06:40.2268617+05:30</ODNextRun>
      <OD_End_Location_Address>sample string 14</OD_End_Location_Address>
      <OD_End_Location_Lat>sample string 12</OD_End_Location_Lat>
      <OD_End_Location_Long>sample string 13</OD_End_Location_Long>
      <OD_End_Location_Name>sample string 11</OD_End_Location_Name>
      <OD_End_Time>2024-11-28T14:06:40.2268617+05:30</OD_End_Time>
      <OnDuty_Duration>15</OnDuty_Duration>
      <On_Start_Location_Address>sample string 9</On_Start_Location_Address>
      <On_Start_Location_Lat>sample string 7</On_Start_Location_Lat>
      <On_Start_Location_Long>sample string 8</On_Start_Location_Long>
      <On_Start_Location_Name>sample string 6</On_Start_Location_Name>
      <On_Start_Time>2024-11-28T14:06:40.2268617+05:30</On_Start_Time>
      <On_duty_master_ID>1</On_duty_master_ID>
      <ToDate>2024-11-28T14:06:40.2268617+05:30</ToDate>
      <Type>sample string 21</Type>
      <User_ID>2</User_ID>
    </OnDutyMasterVO>
  </EmpDeviceNumber>
  <Emp_id>2</Emp_id>
  <FromDate>2024-11-28T14:06:40.2268617+05:30</FromDate>
  <Location>sample string 7</Location>
  <Modified_Date>2024-11-28T14:06:40.2268617+05:30</Modified_Date>
  <Modified_by>16</Modified_by>
  <Name>sample string 3</Name>
  <Password>sample string 4</Password>
  <Photo_url>sample string 10</Photo_url>
  <QR_CODE_URL>sample string 19</QR_CODE_URL>
  <QR_Code>sample string 18</QR_Code>
  <QR_Code_Verified_date>2024-11-28T14:06:40.2268617+05:30</QR_Code_Verified_date>
  <QR_Code_verified>11</QR_Code_verified>
  <ToDate>2024-11-28T14:06:40.2268617+05:30</ToDate>
  <User_id>1</User_id>
</EmployeeMasterVO>

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 'EmployeeMasterVO'.

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>