Delete draft shift (Planday)
planday_delete_draft_shiftDelete a draft shift only after confirming it is unpublished and unworked; published or worked shifts are refused.
Instructions
Delete a shift that is still a draft (not yet published): no employee has seen it and nobody has worked it. The shift is read first and refused if it is published. A published or worked shift is never deleted. Off unless writes are enabled (PLANDAY_ENABLE_WRITES, or the gateway host policy enableWrites).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shiftId": "<shiftId>"
},
"name": "planday_delete_draft_shift"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shiftId | Yes | The draft shift. |