Remove staff time block
Removes a block made with block_time, so the time can be booked online again.
DELETE https://cotlet.dev/api/v1/planity/blocks/{block_id}
write
Returns the id of the removed block. It reaches no one and block_time puts the block back, so it does not wait for your OK. For a repeating block it removes the whole series.
Parameters
| Name | Type | Description |
|---|---|---|
| block_id string required | string | Id from block_time or from the blocks of list_appointments. |
Request
curl -X DELETE https://cotlet.dev/api/v1/planity/blocks/block_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("planity", "remove_block", {"block_id":"block_8c41d2"}) const result = await cotlet.call('planity', 'remove_block', {"block_id":"block_8c41d2"}); cotlet call planity remove_block --data '{"block_id":"block_8c41d2"}' Example response
{
"block_id": "b_330",
"removed": true
}