POST SecuritySystemAPI/EmployeeAssignments/AddAnnualVacation

Request Information

URI Parameters

None.

Body Parameters

AnnualVacation
NameDescriptionTypeAdditional information
UserID

globally unique identifier

None.

AnnualVacationID

globally unique identifier

None.

VacationStartDate

date

None.

VacationEndDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": "e526884c-03fb-4564-9894-d77e3d6f1ee7",
  "AnnualVacationID": "2b55f685-9c80-4ec9-9c4f-4ded9e0bd7a7",
  "VacationStartDate": "2024-11-26T07:39:31.4655839+03:00",
  "VacationEndDate": "2024-11-26T07:39:31.4655839+03:00"
}

application/xml, text/xml

Sample:
<AnnualVacation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SecuritySystem.API.Models">
  <AnnualVacationID>2b55f685-9c80-4ec9-9c4f-4ded9e0bd7a7</AnnualVacationID>
  <UserID>e526884c-03fb-4564-9894-d77e3d6f1ee7</UserID>
  <VacationEndDate>2024-11-26T07:39:31.4655839+03:00</VacationEndDate>
  <VacationStartDate>2024-11-26T07:39:31.4655839+03:00</VacationStartDate>
</AnnualVacation>

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

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>