Update a pricing plan
curl --request PATCH \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing-plans/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"pricing_plan": {
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"repeat_yearly": true,
"active": true,
"is_default": true
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pricing_plan: {
name: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
repeat_yearly: true,
active: true,
is_default: true
}
})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing-plans/{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/pricing-plans/{id}"
payload = { "pricing_plan": {
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"repeat_yearly": True,
"active": True,
"is_default": True
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"repeat_yearly": true,
"active": true,
"is_default": true,
"is_integration_plan": true,
"experience_id": 123,
"bundles": [
{}
],
"pricing_rules": [
{
"id": 123,
"name": "<string>",
"rate_id": 123,
"priority": 123,
"active": true,
"is_default": true,
"clauses": [
{}
]
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Planning Pricing
Update a pricing plan
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
planning
/
pricing-plans
/
{id}
Update a pricing plan
curl --request PATCH \
--url https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing-plans/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"pricing_plan": {
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"repeat_yearly": true,
"active": true,
"is_default": true
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pricing_plan: {
name: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
repeat_yearly: true,
active: true,
is_default: true
}
})
};
fetch('https://app.rookoo.ai/api/v1/accounts/{account_id}/planning/pricing-plans/{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/pricing-plans/{id}"
payload = { "pricing_plan": {
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"repeat_yearly": True,
"active": True,
"is_default": True
} }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"id": 123,
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"repeat_yearly": true,
"active": true,
"is_default": true,
"is_integration_plan": true,
"experience_id": 123,
"bundles": [
{}
],
"pricing_rules": [
{
"id": 123,
"name": "<string>",
"rate_id": 123,
"priority": 123,
"active": true,
"is_default": true,
"clauses": [
{}
]
}
],
"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
Show child attributes
Show child attributes