Update a planning event
curl --request PATCH \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/events/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"event": {
"name": "<string>",
"description": "<string>",
"system_stage": "<string>",
"custom_status": "<string>",
"customer_id": 123,
"event_manager_id": 123,
"conversation_id": 123,
"experience_id": 123,
"pricing_plan_id": 123,
"event_portal_id": "<string>",
"event_label_id": 123,
"pax": 123,
"external_quote_url": "<string>",
"current_total_price": 123,
"allocation_ids": [
"<string>"
],
"custom_attributes": {},
"metadata": {}
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event: {
name: '<string>',
description: '<string>',
system_stage: '<string>',
custom_status: '<string>',
customer_id: 123,
event_manager_id: 123,
conversation_id: 123,
experience_id: 123,
pricing_plan_id: 123,
event_portal_id: '<string>',
event_label_id: 123,
pax: 123,
external_quote_url: '<string>',
current_total_price: 123,
allocation_ids: ['<string>'],
custom_attributes: {},
metadata: {}
}
})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/events/{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}/planning/events/{id}"
payload = { "event": {
"name": "<string>",
"description": "<string>",
"system_stage": "<string>",
"custom_status": "<string>",
"customer_id": 123,
"event_manager_id": 123,
"conversation_id": 123,
"experience_id": 123,
"pricing_plan_id": 123,
"event_portal_id": "<string>",
"event_label_id": 123,
"pax": 123,
"external_quote_url": "<string>",
"current_total_price": 123,
"allocation_ids": ["<string>"],
"custom_attributes": {},
"metadata": {}
} }
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",
"account_id": 123,
"name": "<string>",
"description": "<string>",
"system_stage": "draft",
"custom_status": "<string>",
"customer_id": 123,
"event_manager_id": 123,
"conversation_id": 123,
"pax": 123,
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"pricing_plan_id": 123,
"experience_id": 123,
"event_label_id": 123,
"event_portal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_total_price": 123,
"custom_attributes": {},
"metadata": {},
"allocation_ids": [
"<string>"
],
"access_level": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Planning Events
Update a planning event
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
planning
/
events
/
{id}
Update a planning event
curl --request PATCH \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/events/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"event": {
"name": "<string>",
"description": "<string>",
"system_stage": "<string>",
"custom_status": "<string>",
"customer_id": 123,
"event_manager_id": 123,
"conversation_id": 123,
"experience_id": 123,
"pricing_plan_id": 123,
"event_portal_id": "<string>",
"event_label_id": 123,
"pax": 123,
"external_quote_url": "<string>",
"current_total_price": 123,
"allocation_ids": [
"<string>"
],
"custom_attributes": {},
"metadata": {}
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
event: {
name: '<string>',
description: '<string>',
system_stage: '<string>',
custom_status: '<string>',
customer_id: 123,
event_manager_id: 123,
conversation_id: 123,
experience_id: 123,
pricing_plan_id: 123,
event_portal_id: '<string>',
event_label_id: 123,
pax: 123,
external_quote_url: '<string>',
current_total_price: 123,
allocation_ids: ['<string>'],
custom_attributes: {},
metadata: {}
}
})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/events/{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}/planning/events/{id}"
payload = { "event": {
"name": "<string>",
"description": "<string>",
"system_stage": "<string>",
"custom_status": "<string>",
"customer_id": 123,
"event_manager_id": 123,
"conversation_id": 123,
"experience_id": 123,
"pricing_plan_id": 123,
"event_portal_id": "<string>",
"event_label_id": 123,
"pax": 123,
"external_quote_url": "<string>",
"current_total_price": 123,
"allocation_ids": ["<string>"],
"custom_attributes": {},
"metadata": {}
} }
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",
"account_id": 123,
"name": "<string>",
"description": "<string>",
"system_stage": "draft",
"custom_status": "<string>",
"customer_id": 123,
"event_manager_id": 123,
"conversation_id": 123,
"pax": 123,
"start_date": "2023-12-25",
"end_date": "2023-12-25",
"pricing_plan_id": 123,
"experience_id": 123,
"event_label_id": 123,
"event_portal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"current_total_price": 123,
"custom_attributes": {},
"metadata": {},
"allocation_ids": [
"<string>"
],
"access_level": "<string>",
"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
Available options:
draft, inquiry, confirmed, completed, lost, archived