General - Delete a day template
API Url
Use it to delete a day template
DELETE
http://localhost:16010/ProMarkREST/web/General/day-templates/{id}
Permissions: user
Path parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Day template id. |
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 a day template does not exist :
{"response": {"errorCode": 1,"errorMessage": "The selected day template does not exist."}}