Q3 Roadmap: Embedded Notifications, Embedded Commissions, Tips and more!
curl --location --request GET '/api/organizations//locations//open-shifts/?includePreferences'
{
"id": "string",
"tenantId": "string",
"organizationId": "string",
"locationId": "string",
"location": {
"externalId": "string"
},
"roleId": "string",
"startDate": "string",
"endDate": "string",
"breaks": [
"string"
],
"staffCountRequired": 0,
"requireApproval": true,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"roleName": "string",
"preferences": [
{
"id": "string",
"openShiftId": "string",
"workerId": "string",
"worker": {
"id": "string",
"externalId": "string"
},
"scheduleShiftId": "string",
"preference": "PREFERRED",
"status": "PENDING",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"isDraft": true,
"draft": {}
}
],
"draftPreferences": [
{
"id": "string",
"openShiftId": "string",
"workerId": "string",
"worker": {
"id": "string",
"externalId": "string"
},
"scheduleShiftId": "string",
"preference": "string",
"status": "PENDING",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"draft": {}
}
],
"timezone": "string",
"utcOffset": 0,
"isDraft": true,
"isPublished": true,
"isFullyClaimed": true
}