Update Campaign
Path parameters
id
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
name
This is the name of the campaign. This is just for your own reference.
assistantId
This is the assistant ID that will be used for the campaign calls.
Can only be updated if campaign is not in progress or has ended.
workflowId
This is the workflow ID that will be used for the campaign calls.
Can only be updated if campaign is not in progress or has ended.
phoneNumberId
This is the phone number ID that will be used for the campaign calls.
Can only be updated if campaign is not in progress or has ended.
schedulePlan
This is the schedule plan for the campaign.
Can only be updated if campaign is not in progress or has ended.
status
This is the status of the campaign.
Can only be updated to 'ended' if you want to end the campaign.
When set to 'ended', it will delete all scheduled calls. Calls in progress will be allowed to complete.
Allowed values:
Response
status
This is the status of the campaign.
Allowed values:
name
This is the name of the campaign. This is just for your own reference.
phoneNumberId
This is the phone number ID that will be used for the campaign calls.
schedulePlan
This is the schedule plan for the campaign.
customers
These are the customers that will be called in the campaign.
id
This is the unique identifier for the campaign.
orgId
This is the unique identifier for the org that this campaign belongs to.
createdAt
This is the ISO 8601 date-time string of when the campaign was created.
updatedAt
This is the ISO 8601 date-time string of when the campaign was last updated.
calls
This is a map of call IDs to campaign call details.
callsCounterEnded
This is the number of calls that have ended.
endedReason
This is the explanation for how the campaign ended.
Allowed values:
assistantId
This is the assistant ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.
workflowId
This is the workflow ID that will be used for the campaign calls. Note: Either assistantId or workflowId can be used, but not both.