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
| Name | Type | Description |
|---|---|---|
| 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 -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}' result = client.call("planity", "set_client_online_booking", {"client_id":"c_1042","allowed":False}) const result = await cotlet.call('planity', 'set_client_online_booking', {"client_id":"c_1042","allowed":false}); cotlet call planity set_client_online_booking --data '{"client_id":"c_1042","allowed":false}' Example response
{
"client_id": "c_1042",
"name": "Léa Martin",
"online_booking_allowed": false
}