Skip to main content

Update Single Shared Campaign

PATCH 
/partner_campaigns/:campaignId

Update campaign details by campaignId. Please note: Only webhook urls are editable.

Request

Path Parameters

    campaignId Campaignidrequired

Body

required

    webhookURL WebhookURL (string)

    Webhook to which campaign status updates are sent.

    webhookFailoverURL WebhookURL (string)

    Webhook failover to which campaign status updates are sent.

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L -X PATCH 'https://api.telnyx.com/v2/10dlc/partner_campaigns/:campaignId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"webhookURL": "https://webhook.com/67ea78a8-9f32-4d04-b62d-f9502e8e5f93",
"webhookFailoverURL": "https://webhook.com/9010a453-4df8-4be6-a551-1070892888d6"
}'

Response samples


{
"ageGated": true,
"assignedPhoneNumbersCount": 3,
"brandDisplayName": "ABC Mobile",
"campaignStatus": "TCR_ACCEPTED",
"description": "string",
"directLending": true,
"embeddedLink": true,
"embeddedLinkSample": "string",
"embeddedPhone": true,
"helpKeywords": "string",
"helpMessage": "string",
"isNumberPoolingEnabled": true,
"messageFlow": "string",
"numberPool": true,
"optinKeywords": "string",
"optinMessage": "string",
"optoutKeywords": "string",
"optoutMessage": "string",
"privacyPolicyLink": "string",
"usecase": "string",
"sample1": "string",
"sample2": "string",
"sample3": "string",
"sample4": "string",
"sample5": "string",
"subUsecases": [
"string"
],
"subscriberOptin": true,
"subscriberOptout": true,
"tcrBrandId": "BBRAND1",
"tcrCampaignId": "CCAMP1",
"termsAndConditions": true,
"termsAndConditionsLink": "string",
"webhookURL": "https://example.com/webhook",
"webhookFailoverURL": "https://example.com/failover-webhook",
"createdAt": "2021-03-08T17:57:48.801186",
"updatedAt": "2021-03-08T17:57:48.801186"
}