curl --request DELETE \
--url https://api.example.com/api/agenda/bookings/{id}{
"success": true,
"401 Unauthorized": {},
"400 Bad Request": {},
"404 Not Found": {}
}Permanently delete a booking by ID
curl --request DELETE \
--url https://api.example.com/api/agenda/bookings/{id}{
"success": true,
"401 Unauthorized": {},
"400 Bad Request": {},
"404 Not Found": {}
}cancelled instead of deleting if you need to maintain historical records.auth_token cookie.
Authorization: Bearer YOUR_TOKEN
abc123-def456-ghi789true if the request succeedscurl -X DELETE 'https://api.beils.com/api/agenda/bookings/abc123-def456-ghi789' \
-H 'Authorization: Bearer YOUR_TOKEN'
{
"success": true
}
{
"statusCode": 401,
"statusMessage": "Unauthorized: Token is missing or invalid"
}
{
"statusCode": 400,
"statusMessage": "Booking ID is required"
}
cancelled. This approach:curl -X PUT 'https://api.beils.com/api/agenda/bookings/abc123-def456-ghi789' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"status": "cancelled",
"notes": "Cancelled by client on 2024-03-05"
}'
status: "cancelled" instead