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

Parameters: remove_block
NameTypeDescription
block_id string required string Id from block_time or from the blocks of list_appointments.

Request

cURL
curl -X DELETE https://cotlet.dev/api/v1/planity/blocks/block_8c41d2 \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("planity", "remove_block", {"block_id":"block_8c41d2"})
Node.js
const result = await cotlet.call('planity', 'remove_block', {"block_id":"block_8c41d2"});
CLI
cotlet call planity remove_block --data '{"block_id":"block_8c41d2"}'

Example response

JSON

{
  "block_id": "b_330",
  "removed": true
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.