Skip to main content
PATCH
Update a campaign by ID
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. A public v1 replacement is not currently listed in the v1 reference. This endpoint remains available for existing integrations until then.
Updates editable settings on a campaign - primarily the retry policy (number_of_retries, interval_between_retries). Only the fields you include in the request are updated; omitted fields are left unchanged. Refer to the request schema below for the exact set of editable fields.

When to use this

  • Retry tuning: adjust number_of_retries and interval_between_retries to control how persistently the campaign re-attempts leads that don’t connect.
  • Renaming: keep the campaign’s display name aligned with the business process it serves.
  • Retry policy changes: adjust how aggressively DialNexa retries no-answer or busy outcomes. See Auto-retry.
  • Pausing: set status-related fields to pause delivery while leaving the campaign’s configuration in place.
If you need to swap the agent after calls have started, the cleanest path is to cancel the existing campaign through the dashboard and create a new one with the new agent, that keeps each campaign’s call logs traceable to exactly one agent configuration.

Path parameters

Errors

  • 404 Not Found is returned when the campaign does not exist.
  • 400 Bad Request is returned when a field fails validation.
  • 409 Conflict is returned when you try to change agent_id after calls have been placed.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Path Parameters

id
string
required

Body

application/json
sent_lead_count
number

Total Number Failed Leads for this Campaign

Example:

"10"

picked_up_lead_count
number

Total Number Leads who picked up for this Campaign

Example:

"10"

success_lead_count
number

Total Number Successful Leads for this Campaign

Example:

"10"

completed_leads
number

Total Number of Completed Leads for this Campaign

Example:

"10"

failed_leads
number

Total Number of Failed Leads for this Campaign

Example:

"10"

number_of_retries
number

Number of retries for the campaign (0-5)

Example:

3

interval_between_retries
number

Interval between retries in minutes (0-1440)

Example:

15

Response

Campaign updated successfully