curl --request POST \
--url https://api.callab.ai/v1/campaigns/update/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"notes": "<string>",
"status": "<string>",
"contacts_list_source": [
"<string>"
],
"contacts_list_tags": [
"<string>"
],
"contacts_list_categories": [
"<string>"
],
"contacts_list_source_metadata": {},
"agent_variables_contact_metadata_mapping": {},
"call_time_of_day_from": "<string>",
"call_time_of_day_to": "<string>",
"number_of_call_attempts": [
123
],
"retry_delay": [
123
],
"retry_delay_unit": [
"<string>"
],
"days_of_week": [
123
],
"time_zone": "<string>",
"inbound_phone_number_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outbound_phone_number_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_mapping_variables": {},
"webhook_mapping_variables_sources": {},
"webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"status": "<string>",
"message": "<string>",
"data": "<string>"
}
Updates an existing campaign by its ID
curl --request POST \
--url https://api.callab.ai/v1/campaigns/update/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"notes": "<string>",
"status": "<string>",
"contacts_list_source": [
"<string>"
],
"contacts_list_tags": [
"<string>"
],
"contacts_list_categories": [
"<string>"
],
"contacts_list_source_metadata": {},
"agent_variables_contact_metadata_mapping": {},
"call_time_of_day_from": "<string>",
"call_time_of_day_to": "<string>",
"number_of_call_attempts": [
123
],
"retry_delay": [
123
],
"retry_delay_unit": [
"<string>"
],
"days_of_week": [
123
],
"time_zone": "<string>",
"inbound_phone_number_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"outbound_phone_number_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_mapping_variables": {},
"webhook_mapping_variables_sources": {},
"webhook_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
"status": "<string>",
"message": "<string>",
"data": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
ID of campaign to update
Campaign update data
The body is of type object
.
Campaign updated
The response is of type object
.
Was this page helpful?