POST
/
v1
/
shift
curl --request POST \
  --url https://api.sandbox.usenash.com/v1/shift \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Shift 1",
  "plannedstart": "2021-01-01T00:00:00Z",
  "plannedend": "2021-01-01T00:00:00Z",
  "plannedbreakduration": 30,
  "shiftmetadata": {
    "key": "value"
  },
  "status": "active",
  "storelocationid": "123",
  "externalstorelocationid": "123",
  "zoneids": [
    "123"
  ],
  "externalzoneids": [
    "123"
  ]
}'
{
  "id": "<string>",
  "name": "<string>",
  "plannedstart": "<string>",
  "plannedend": "<string>",
  "plannedbreakduration": 123,
  "shiftmetadata": {},
  "status": "<string>",
  "storelocationid": "<string>",
  "externalstorelocationid": "<string>",
  "zoneids": [
    "<string>"
  ],
  "externalzoneids": [
    "<string>"
  ],
  "courierid": "<string>",
  "vehicleid": "<string>",
  "createdat": "<string>",
  "updatedat": "<string>"
}

Body

application/json

Input for creating a shift.

Response

200
application/json
OK

Response for shift.