/events/{eventId}/shifts

Changed on

Use this endpoint to add new Shifts to an existing Event. The advantages of this endpoint over the Update endpoint are that you needn’t know the other properties of an event and it will return the unique identifier of the new Shift.

If the specified Event does not exist, this endpoint will return an error with HTTP Status Code 404 Not Found.

If the specified Event does exist but is not editable, this endpoint will return an error with HTTP Status Code 403 Forbidden.

If successful, the endpoint responds with HTTP Status Code 201 Created and the integer ID of the created Shift in the response body.

post/events/{eventId}/shifts

Request

  • Base URL
    https://api.securevan.com/v4
  • URL
    https://api.securevan.com/v4/events/{eventId}/shifts
  • Auth
    HTTP basic

Path parameters

eventIdinteger required

Required; Unique identifier for an editable Event

Request body

shiftobject

The body of this request is a standard Event Shift

Response

201

eventShiftIdinteger
namestring
startTimestring
endTimestring

Example response

{
  "eventShiftId": 123,
  "name": "Late Shift",
  "startTime": "2015-11-13T20:00:00-05:00",
  "endTime": "2015-11-13T22:00:00-05:00"
}

Changes