Discussions
Unable to delete published shifts that do not show up in UI.
22 hours ago by Charbel Abou-Khalil
Hi,
I am attempting to delete a bunch of orphan shifts that do not show up anywhere but can be listed using API.
the GET works fine to list the 50 published shifts. However, DELETE return 404 not found.
I have then though I would correct those orphan shifts to include department, however, the PUT also fails with 404.
Is there a way to delete those 50 obsolete and orphaned Shifts.
curl --request PUT
--url https://api.7shifts.com/v2/company/412815/shifts/1458367226
--header 'accept: application/problem+json'
--header 'authorization: Bearer xxxxx'
--header 'content-type: application/json'
--data '
{
"department_id": 823524,
"location_id": 501026
}
'
