Remove a room blockout time
DELETE
https://api.zenoti.com/v1/room/{room_id}/blockouttimes/{block_out_time_id}
Permanently deletes a blockout time whose unique identifier is supplied as {block_out_time_id} and the unique id of the therapist as {employee_id}. It cannot be undone.
Before you begin
Permission: Manage API Keys (on the Administrator security object) — Required to access Zenoti APIs.
Endpoint
DELETE /v1/room/{room_id}/blockouttimes/{block_out_time_id}
Base URL: https://api.zenoti.com
Request
Path parameters
Query parameters
Response
Success (204 No Content)
{
"success": true,
"error": {}
}
Response fields
Example
curl --request DELETE \
--url 'https://api.zenoti.com/v1/room/{room_id}/blockouttimes/{block_out_time_id}' \
--header 'Authorization: bearer {{access_token}}'
const response = await fetch('https://api.zenoti.com/v1/room/{room_id}/blockouttimes/{block_out_time_id}', {
method: 'DELETE',
headers: {
'Authorization': 'bearer {{access_token}}'
},
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.zenoti.com/v1/room/{room_id}/blockouttimes/{block_out_time_id}',
headers={
'Authorization': 'bearer {{access_token}}',
},
)
data = response.json()
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "bearer {{access_token}}");
var response = await client.DeleteAsync(
"https://api.zenoti.com/v1/room/{room_id}/blockouttimes/{block_out_time_id}");
var data = await response.Content.ReadAsStringAsync();
require 'net/http'
require 'json'
uri = URI('https://api.zenoti.com/v1/room/{room_id}/blockouttimes/{block_out_time_id}')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(uri)
request['Authorization'] = 'bearer {{access_token}}'
response = http.request(request)
data = JSON.parse(response.body)
Error codes