Allow or stop online booking for a client

Ticks or clears "Empêcher ce client de prendre RDV en ligne" on a client record.

PUT https://cotlet.dev/api/v1/planity/clients/{client_id}/online-booking

write Confirm

Returns the client with the new setting. Planity names this option for clients who miss appointments. It governs online booking and leaves the record and its appointments as they are. It decides whether a person can book, so each call asks for your OK. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: set_client_online_booking
NameTypeDescription
client_id string required string Id from list_clients.
allowed boolean required boolean false stops the client booking on Planity online, true lets them book again.

Request

cURL
curl -X PUT https://cotlet.dev/api/v1/planity/clients/c_1042/online-booking \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"allowed":false}'
Python
result = client.call("planity", "set_client_online_booking", {"client_id":"c_1042","allowed":False})
Node.js
const result = await cotlet.call('planity', 'set_client_online_booking', {"client_id":"c_1042","allowed":false});
CLI
cotlet call planity set_client_online_booking --data '{"client_id":"c_1042","allowed":false}'

Example response

JSON

{
  "client_id": "c_1042",
  "name": "Léa Martin",
  "online_booking_allowed": false
}

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.