Update a space
curl --request PATCH \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/spaces/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"space": {
"name": "<string>",
"description": "<string>",
"parent_id": "<string>",
"venue_id": "<string>",
"position": 123,
"active": true,
"available_from": "2023-12-25",
"available_until": "2023-12-25",
"square_meters": 123,
"theater": 123,
"classroom": 123,
"standing": 123,
"banquet": 123,
"boardroom": 123,
"u_shape": 123,
"concert": 123,
"cocktail": 123,
"max_capacity_seated": 123,
"max_capacity_standing": 123,
"working_hours_enabled": true,
"timezone": "<string>",
"out_of_office_message": "<string>",
"max_tentative_allocations": 123,
"tentative_expiry_minutes": 123,
"custom_attributes": {},
"schedule": {}
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
space: {
name: '<string>',
description: '<string>',
parent_id: '<string>',
venue_id: '<string>',
position: 123,
active: true,
available_from: '2023-12-25',
available_until: '2023-12-25',
square_meters: 123,
theater: 123,
classroom: 123,
standing: 123,
banquet: 123,
boardroom: 123,
u_shape: 123,
concert: 123,
cocktail: 123,
max_capacity_seated: 123,
max_capacity_standing: 123,
working_hours_enabled: true,
timezone: '<string>',
out_of_office_message: '<string>',
max_tentative_allocations: 123,
tentative_expiry_minutes: 123,
custom_attributes: {},
schedule: {}
}
})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/spaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.rookoo.ai/api/v1/accounts/{account_id}/spaces/{id}"
payload = { "space": {
"name": "<string>",
"description": "<string>",
"parent_id": "<string>",
"venue_id": "<string>",
"position": 123,
"active": True,
"available_from": "2023-12-25",
"available_until": "2023-12-25",
"square_meters": 123,
"theater": 123,
"classroom": 123,
"standing": 123,
"banquet": 123,
"boardroom": 123,
"u_shape": 123,
"concert": 123,
"cocktail": 123,
"max_capacity_seated": 123,
"max_capacity_standing": 123,
"working_hours_enabled": True,
"timezone": "<string>",
"out_of_office_message": "<string>",
"max_tentative_allocations": 123,
"tentative_expiry_minutes": 123,
"custom_attributes": {},
"schedule": {}
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"resource_id": "<string>",
"parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"venue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"knowledgebase_id": 123,
"gallery_knowledgebase_id": 123,
"position": 123,
"active": true,
"square_meters": 123,
"theater": 123,
"classroom": 123,
"standing": 123,
"banquet": 123,
"boardroom": 123,
"u_shape": 123,
"concert": 123,
"cocktail": 123,
"max_capacity_seated": 123,
"max_capacity_standing": 123,
"timezone": "<string>",
"working_hours_enabled": true,
"schedule": {},
"custom_attributes": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Spaces
Update a space
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
spaces
/
{id}
Update a space
curl --request PATCH \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/spaces/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"space": {
"name": "<string>",
"description": "<string>",
"parent_id": "<string>",
"venue_id": "<string>",
"position": 123,
"active": true,
"available_from": "2023-12-25",
"available_until": "2023-12-25",
"square_meters": 123,
"theater": 123,
"classroom": 123,
"standing": 123,
"banquet": 123,
"boardroom": 123,
"u_shape": 123,
"concert": 123,
"cocktail": 123,
"max_capacity_seated": 123,
"max_capacity_standing": 123,
"working_hours_enabled": true,
"timezone": "<string>",
"out_of_office_message": "<string>",
"max_tentative_allocations": 123,
"tentative_expiry_minutes": 123,
"custom_attributes": {},
"schedule": {}
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
space: {
name: '<string>',
description: '<string>',
parent_id: '<string>',
venue_id: '<string>',
position: 123,
active: true,
available_from: '2023-12-25',
available_until: '2023-12-25',
square_meters: 123,
theater: 123,
classroom: 123,
standing: 123,
banquet: 123,
boardroom: 123,
u_shape: 123,
concert: 123,
cocktail: 123,
max_capacity_seated: 123,
max_capacity_standing: 123,
working_hours_enabled: true,
timezone: '<string>',
out_of_office_message: '<string>',
max_tentative_allocations: 123,
tentative_expiry_minutes: 123,
custom_attributes: {},
schedule: {}
}
})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/spaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.rookoo.ai/api/v1/accounts/{account_id}/spaces/{id}"
payload = { "space": {
"name": "<string>",
"description": "<string>",
"parent_id": "<string>",
"venue_id": "<string>",
"position": 123,
"active": True,
"available_from": "2023-12-25",
"available_until": "2023-12-25",
"square_meters": 123,
"theater": 123,
"classroom": 123,
"standing": 123,
"banquet": 123,
"boardroom": 123,
"u_shape": 123,
"concert": 123,
"cocktail": 123,
"max_capacity_seated": 123,
"max_capacity_standing": 123,
"working_hours_enabled": True,
"timezone": "<string>",
"out_of_office_message": "<string>",
"max_tentative_allocations": 123,
"tentative_expiry_minutes": 123,
"custom_attributes": {},
"schedule": {}
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"resource_id": "<string>",
"parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"venue_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"knowledgebase_id": 123,
"gallery_knowledgebase_id": 123,
"position": 123,
"active": true,
"square_meters": 123,
"theater": 123,
"classroom": 123,
"standing": 123,
"banquet": 123,
"boardroom": 123,
"u_shape": 123,
"concert": 123,
"cocktail": 123,
"max_capacity_seated": 123,
"max_capacity_standing": 123,
"timezone": "<string>",
"working_hours_enabled": true,
"schedule": {},
"custom_attributes": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
Body
application/json
Show child attributes
Show child attributes
Response
200 - application/json
Success