Use this endpoint to create a new Schedule Type.

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

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

post/scheduleTypes

Request

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

Request body

namestring

Required; name for the Schedule Type

Response

201

scheduleTypeIdinteger
namestring

Example response

{
  "scheduleTypeId": 2,
  "name": "Part-Time"
}

Changes