Delete Phone Number Campaign
DELETE/phoneNumberCampaign/:phoneNumber
This endpoint allows you to remove a campaign assignment from the supplied phoneNumber
.
Request
Path Parameters
phoneNumber Phonenumberrequired
Responses
200: Successful Response
- application/json
default: Unexpected error
- application/json
Request samples
curl -L -X DELETE 'https://api.telnyx.com/10dlc/phoneNumberCampaign/:phoneNumber' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"phoneNumber": "+18005550199",
"brandId": "7ba705b7-22af-493f-addc-ac04b7ca071c",
"tcrBrandId": "BBRAND1",
"campaignId": "string",
"tcrCampaignId": "CCAMPA1",
"telnyxCampaignId": "3008dd9f-66d7-40e0-bf23-bf2d8d1a96ba",
"assignmentStatus": "ASSIGNED",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
}
}
]
}