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

Commit

Permalink
Merge pull request #972 from Bandwidth/MV-8656
Browse files Browse the repository at this point in the history
MV-8656: Campaign Revet API
  • Loading branch information
nirmitpatel authored Mar 20, 2023
2 parents 9a1dafe + cca663a commit f5fa8a0
Showing 1 changed file with 59 additions and 3 deletions.
62 changes: 59 additions & 3 deletions site/docs/messaging/campaign-management/csp/campaign-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ HTTP/1.1 429 Too Many Requests
4. [Fetch Campaign List](#fetch-campaign-list)
5. [Fetch Campaign List By BrandId](#fetch-campaign-list-by-brand)
6. [Deactivate Campaign](#deactivate-campaign)
7. [Update Campaign TN Relationship](#update-campaign-tn-relationship)
8. [Bulk Update Campaign TN Relationships](#bulk-update-campaign-tn-relationships)
7. [Re-Vet Campaign](#re-vet-campaign)
8. [Update Campaign TN Relationship](#update-campaign-tn-relationship)
9. [Bulk Update Campaign TN Relationships](#bulk-update-campaign-tn-relationships)


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

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

### Examples

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

## Re-Vet campaign
This endpoint will send a reverification request to TCR for DCA2 declined campaign.

### Request URL
<Highlight color="#9A59C5">PUT</Highlight> <code>https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet</code>

### Examples

> Request
```http
PUT https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet HTTP/1.1
Content-Type: application/xml; charset=utf-8
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
```

> Response
```http
HTTP/1.1 204 No Content
Content-Type: application/xml
Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet
```

> Error Response
```xml
HTTP/1.1 403 Unauthorized
Content-Type: application/xml
Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CampaignResponse>
<ResponseStatus>
<ErrorCode>12055</ErrorCode>
<Description>CampaignManagement feature is not enabled on account 9999999</Description>
</ResponseStatus>
</CampaignResponse>
```

```xml
HTTP/1.1 404 Not Found
Content-Type: application/xml
Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CampaignResponse>
<ResponseStatus>
<ErrorCode>12189</ErrorCode>
<Description>Campaign with id 'CTW3YRE' not found"</Description>
</ResponseStatus>
</CampaignResponse>
```

## Update Campaign TN Relationship

### Assumption
Expand Down

0 comments on commit f5fa8a0

Please sign in to comment.