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.