Update campaign disposition
PUT/:organization_id/campaign_dispositions/:id
Updates a specific campaign disposition
Request
Path Parameters
Campaign disposition ID
- application/json
Bodyrequired
ID of the organization this disposition belongs to
Name of the disposition
Description of the disposition
Status to assign to dialer records with this disposition
Whether this disposition should close the phone number for further dialing
Whether this disposition marks the contact as do not call
Scope of the do not call flag (e.g., organization, campaign)
Responses
- 200
- 401
- 403
- 404
- 422
Campaign disposition updated successfully
- application/json
- Schema
- Example (auto)
Schema
Unique identifier for the campaign disposition
ID of the organization this disposition belongs to
Name of the disposition
Description of the disposition
Status to assign to dialer records with this disposition
Whether this disposition should close the phone number for further dialing
Whether this disposition marks the contact as do not call
Scope of the do not call flag (e.g., organization, campaign)
{
"id": 0,
"organization_id": 0,
"name": "string",
"description": "string",
"record_status": "string",
"close_number": true,
"do_not_call": true,
"do_not_call_scope": "string",
"created_at": "2024-07-29T15:51:28.071Z",
"updated_at": "2024-07-29T15:51:28.071Z"
}
Unauthorized
Forbidden
Not found
Unprocessable entity
- application/json
- Schema
- Example (auto)
Schema
{
"error": {}
}
Authorization: http
name: basicAuthtype: httpscheme: basicdescription: Basic authentication using API key ID and API key
- python
- nodejs
- ruby
- curl
- go
- php
- java
- powershell
- javascript
- rust
- HTTP.CLIENT
- REQUESTS
import http.client
import json
conn = http.client.HTTPSConnection("cloud-staging.cloverhound.com")
payload = ''
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Basic PHVzZXJuYW1lPjo8cGFzc3dvcmQ+'
}
conn.request("PUT", "/:organization_id/campaign_dispositions/:id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))