Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.
Update call routing rule
PUT
/api/v1/call-routing-rules/{id}
const url = 'https://api.pitch2sale.com/api/v1/call-routing-rules/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","priority":1,"condition":{"cf_path":"example","cf_value":"example","lead_status_id":"example","is_client":true,"owner_user_id":"example"},"route":{"type":"user","user_id":"example","group_id":"example","number":"example","voicemail_id":"example","voice_agent_id":"example"},"is_enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.pitch2sale.com/api/v1/call-routing-rules/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "priority": 1, "condition": { "cf_path": "example", "cf_value": "example", "lead_status_id": "example", "is_client": true, "owner_user_id": "example" }, "route": { "type": "user", "user_id": "example", "group_id": "example", "number": "example", "voicemail_id": "example", "voice_agent_id": "example" }, "is_enabled": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
priority
integer
condition
object
cf_path
string
cf_value
string | number | boolean | null
lead_status_id
string
is_client
boolean | null
owner_user_id
string
route
object
type
required
string
user_id
string
group_id
string
number
string
voicemail_id
string
voice_agent_id
string
is_enabled
boolean
Responses
Section titled “Responses”OK
Validation failed
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Authentication required or token invalid
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Role permission or token scope missing
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}Rate limit exceeded
Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{ "error": "example", "code": "example", "message": "example", "details": [ { "field": "example", "message": "example", "code": "example" } ]}