Create single availability

Changed on

/employees/availability/create

post/employees/availability/create

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
titlestring

Max length: 100

notestring

Max length: 1000

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": {
    "id": "0001f8cqb2txxxfkv641a7aqvk",
    "employee_id": 2,
    "company_id": 11,
    "start_time": "2020-04-09T00:00:00+02:00",
    "end_time": "2020-04-10T00:00:00+02:00",
    "title": "Sample title",
    "note": "Sample note",
    "created_at": "2020-04-02T23:47:14+02:00",
    "created_by": 2
  },
  "token": "xxxxxxxxxx"
}

Changes