/employees/availability/series/reject/{series_id}

put/employees/availability/series/reject/{series_id}

Request

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

Path parameters

series_idstring required

Query parameters

access_tokenstring required

xxxxxxxxxxxxx

Headers

Content-Typestring required

application/x-www-form-urlencoded

Request body application/x-www-form-urlencoded

typeinteger required

Direction of rejection (1 - Future, 2 - Past, 3 - All)

reject_from_slot_idstring

From which availability slot should be rejected Optional if type=3 is sent, otherwise Required

rejected_notestring

Max length: 1000

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": [
    {
      "id": "0001f8p7mm8bascfx0jbt1e1a0",
      "status": 2,
      "employee_id": 2,
      "company_id": 11,
      "start_time": "2020-05-15T13:30:00+02:00",
      "end_time": "2020-05-15T15:00:00+02:00",
      "series_id": "0001f8p7mm8bascfx0jbt1e19z",
      "created_at": "2020-04-06T14:20:36+02:00",
      "created_by": 2,
      "updated_at": "2020-04-06T14:36:36+02:00",
      "updated_by": 2,
      "rejected_note": "Sample reject note"
    }
  ],
  "token": "xxxxxxxxxx"
}

Changes