Accepts a standard Shift Type object with no read-only values specified.

Response

If successful, the endpoint responds with HTTP Status Code 201 Created and a Shift Type object with the integer ID of the created Shift Type in the response body. It also sets the Location header to the location of the Shift Type.

post/shiftTypes

Request

  • Base URL
    https://api.securevan.com/v4
  • URL
    https://api.securevan.com/v4/shiftTypes
  • Auth
    HTTP basic

Request body

namestring

Required; name for the Shift Type

defaultStartTimestring date

Required; default start time for the Shift Type

defaultEndTimestring date

Required; default end time for the Shift Type

Response

201

shiftTypeIdinteger
namestring
defaultStartTimestring
defaultEndTimestring

Example response

{
  "shiftTypeId": 14,
  "name": "1st Shift",
  "defaultStartTime": "1900-01-01T08:00Z",
  "defaultEndTime": "1900-01-01T16:00Z"
}

Changes