ProRoster - Delete a shift
API Url
Use it for deleting a shift.
DELETE
http://localhost:16010/ProMarkREST/rest/ProRoster/employees/{empId}/shifts/{id}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| empId | String | The unique identifier of the employee. |
| id | String | The unique identifier of the shift. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example when there is only one shift in a day:
{"response": {"errorCode": 98,"errorMessage": "You cannot have less than one shift in a day"}}