PUT Shift Breaks

Changed on

/shifts Permission level: 4

put/shifts/{shift_id}/shiftbreaks?access_token=xxxxxxx

Request

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

Path parameters

shift_idinteger required

ID of a shift

Query parameters

access_tokenstring required

Headers

Content-Typestring

Content type for this request should be application/json

Request body application/x-www-form-urlencoded

breaksstring[] required

Each object contains 3 fields: id, start and end. id represents a shift break ID which is updated. start and end are new values for break start and break end.

Response

200

statusinteger
tokenstring
errorunknown

Example response

{
  "status": 1,
  "data": [
    {
      "employee": "2952814",
      "breaks": [
        {
          "id": 138529,
          "shift_employee_id": 626646480,
          "start": "2018-10-11 04:30:00",
          "end": "2018-10-11 05:30:00",
          "company_id": 132017,
          "created_at": "2018-10-11 10:49:32",
          "updated_at": "2018-10-11 11:24:52",
          "created_by": 1417022,
          "updated_by": 1417022
        }
      ]
    }
  ],
  "token": "xxxxxxxxxxx"
}

Changes