Create availability series

Changed on

/employees/availability/series

post/employees/availability/series

Request

  • Base URL
    https://www.humanity.com/api/v2
  • Auth
    API key in query parameter access_token

Query parameters

access_tokenstring required

xxxxxxxxxxxxx

Headers

Content-Typestring required

application/x-www-form-urlencoded

Request body application/x-www-form-urlencoded

start_datetimestring required

DateTime

end_datetimestring required

DateTime

employee_idinteger required
rrulestring required

String in RRULE format

titlestring

Max length: 100

notestring

Max length: 1000

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": {
    "id": "0001f8cr4rj1b7jsrmaqsy2nfz",
    "employee_id": 2,
    "company_id": 11,
    "start_time": "2020-05-15T13:30:00+02:00",
    "end_time": "2020-05-15T15:00:00+02:00",
    "rrule": "FREQ=DAILY;UNTIL=20201215T220000Z",
    "created_at": "2020-04-03T00:00:56+02:00",
    "created_by": 2
  },
  "token": "xxxxxxxxxx"
}

Changes