PATCH
/
campaigns
/
{campaignId}
curl --request PATCH \
  --url https://api.voxia.ai/campaigns/{campaignId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "phoneNumbers": [
    "<string>"
  ],
  "webhooks": [
    {
      "url": "<string>",
      "events": [
        "POST_PROCESSING_FINISHED:INTERESTED",
        "POST_PROCESSING_FINISHED:NOT_INTERESTED",
        "POST_PROCESSING_FINISHED:CALL_ME_LATER",
        "POST_PROCESSING_FINISHED:WRONG_NUMBER",
        "POST_PROCESSING_FINISHED:DO_NOT_CALL"
      ],
      "isAdvanced": false,
      "advancedWebhook": {
        "url": "<string>",
        "method": "POST",
        "headers": [],
        "parameters": [],
        "body": ""
      }
    }
  ]
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Headers

x-sub-organization-id
string

Optional sub organization ID. Must belong to your main organization API key.

Path Parameters

campaignId
string
required

ID of the campaign to update

Body

application/json

Response

200
application/json

Campaign updated successfully

The response is of type object.