POST api/AddAbsence

Request Information

URI Parameters

None.

Body Parameters

Absence
NameDescriptionTypeAdditional information
UserId

integer

None.

HoursTypeId

integer

None.

Notes

string

None.

Start

date

None.

End

date

None.

CreatedBy

integer

None.

AllUsers

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "HoursTypeId": 2,
  "Notes": "sample string 3",
  "Start": "2026-04-07T15:41:14.7961966+01:00",
  "End": "2026-04-07T15:41:14.7961966+01:00",
  "CreatedBy": 5,
  "AllUsers": true
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.