The Rest API is deprecated and will be removed in the future. We recommend using the GraphQL API instead. Some endpoints may not be available anymore.

Create shift

POST

https://api.pack.cloud/v1/warehouses/{warehouseId}/analytics/shifts

Request

Path parameters

warehouseIdstring

Payload

start_atstringrequired
Time that the shift starts
end_atstringrequired
Time that the shift ends
Days of week that the shift is done
typestring
Type of the shift
Allowed values:pickingpacking

Response

Created

Body

idstring
ID of the analytics shift
start_atstring
Time that the shift starts
end_atstring
Time that the shift ends
Days of week that the shift is done
typestring
Type of the shift
Allowed values:pickingpacking
created_atstring
Creation time of resource
updated_atstring
Latest update time of resource