curl --request POST \
--url https://api.sandbox.usenash.com/v1/shift \
--header 'Content-Type: application/json' \
--data '{
"id": "sft_fKUFVWZQGbEfsyMwJYntE2",
"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>"
}
curl --request POST \
--url https://api.sandbox.usenash.com/v1/shift \
--header 'Content-Type: application/json' \
--data '{
"id": "sft_fKUFVWZQGbEfsyMwJYntE2",
"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>"
}
Input for creating a shift.
OK
Response for shift.