Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit f5fa8a0

Browse files
authored
Merge pull request #972 from Bandwidth/MV-8656
MV-8656: Campaign Revet API
2 parents 9a1dafe + cca663a commit f5fa8a0

File tree

1 file changed

+59
-3
lines changed

1 file changed

+59
-3
lines changed

site/docs/messaging/campaign-management/csp/campaign-api.mdx

Lines changed: 59 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ HTTP/1.1 429 Too Many Requests
7171
4. [Fetch Campaign List](#fetch-campaign-list)
7272
5. [Fetch Campaign List By BrandId](#fetch-campaign-list-by-brand)
7373
6. [Deactivate Campaign](#deactivate-campaign)
74-
7. [Update Campaign TN Relationship](#update-campaign-tn-relationship)
75-
8. [Bulk Update Campaign TN Relationships](#bulk-update-campaign-tn-relationships)
74+
7. [Re-Vet Campaign](#re-vet-campaign)
75+
8. [Update Campaign TN Relationship](#update-campaign-tn-relationship)
76+
9. [Bulk Update Campaign TN Relationships](#bulk-update-campaign-tn-relationships)
7677

7778

7879
## Create campaign
@@ -760,7 +761,7 @@ Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManag
760761
This endpoint will update the campaign status to 'EXPIRED'.
761762

762763
### Request URL
763-
<code class="delete">DELETE</code>`https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}`
764+
<Highlight color="#ff6f47">DELETE</Highlight> <code>https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}</code>
764765

765766
### Examples
766767

@@ -797,6 +798,61 @@ Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManag
797798
</CampaignResponse>
798799
```
799800

801+
## Re-Vet campaign
802+
This endpoint will send a reverification request to TCR for DCA2 declined campaign.
803+
804+
### Request URL
805+
<Highlight color="#9A59C5">PUT</Highlight> <code>https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet</code>
806+
807+
### Examples
808+
809+
> Request
810+
811+
```http
812+
PUT https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet HTTP/1.1
813+
Content-Type: application/xml; charset=utf-8
814+
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
815+
```
816+
817+
> Response
818+
819+
```http
820+
HTTP/1.1 204 No Content
821+
Content-Type: application/xml
822+
Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet
823+
824+
```
825+
826+
> Error Response
827+
828+
```xml
829+
HTTP/1.1 403 Unauthorized
830+
Content-Type: application/xml
831+
Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet
832+
833+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
834+
<CampaignResponse>
835+
<ResponseStatus>
836+
<ErrorCode>12055</ErrorCode>
837+
<Description>CampaignManagement feature is not enabled on account 9999999</Description>
838+
</ResponseStatus>
839+
</CampaignResponse>
840+
```
841+
842+
```xml
843+
HTTP/1.1 404 Not Found
844+
Content-Type: application/xml
845+
Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet
846+
847+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
848+
<CampaignResponse>
849+
<ResponseStatus>
850+
<ErrorCode>12189</ErrorCode>
851+
<Description>Campaign with id 'CTW3YRE' not found"</Description>
852+
</ResponseStatus>
853+
</CampaignResponse>
854+
```
855+
800856
## Update Campaign TN Relationship
801857

802858
### Assumption

0 commit comments

Comments
 (0)