POST SecuritySystemAPI/EmployeeAssignments/AddEmployeeAssignments

Request Information

URI Parameters

None.

Body Parameters

EmployeeAssignmentInfo
NameDescriptionTypeAdditional information
ID

globally unique identifier

None.

UserID

globally unique identifier

None.

AnnualVacationStart

date

None.

AnnualVacationEnd

date

None.

AssignedInWeekEnd

boolean

None.

AssignedExtraOneHour

boolean

None.

AssignedInEidVacation

boolean

None.

SubstitutionalRests

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "2ba7f99d-eb7c-44f4-bc14-994dbc7b3e44",
  "UserID": "e6141e1e-a47e-454b-86c8-7505baf140a9",
  "AnnualVacationStart": "2024-11-26T07:20:12.1503279+03:00",
  "AnnualVacationEnd": "2024-11-26T07:20:12.1503279+03:00",
  "AssignedInWeekEnd": true,
  "AssignedExtraOneHour": true,
  "AssignedInEidVacation": true,
  "SubstitutionalRests": true
}

application/xml, text/xml

Sample:
<EmployeeAssignmentInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SecuritySystem.API.Models">
  <AnnualVacationEnd>2024-11-26T07:20:12.1503279+03:00</AnnualVacationEnd>
  <AnnualVacationStart>2024-11-26T07:20:12.1503279+03:00</AnnualVacationStart>
  <AssignedExtraOneHour>true</AssignedExtraOneHour>
  <AssignedInEidVacation>true</AssignedInEidVacation>
  <AssignedInWeekEnd>true</AssignedInWeekEnd>
  <ID>2ba7f99d-eb7c-44f4-bc14-994dbc7b3e44</ID>
  <SubstitutionalRests>true</SubstitutionalRests>
  <UserID>e6141e1e-a47e-454b-86c8-7505baf140a9</UserID>
</EmployeeAssignmentInfo>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>