From 66282f288ea3c51f3359e5ebb770a7a140155802 Mon Sep 17 00:00:00 2001 From: Nirmit Patel Date: Wed, 8 Mar 2023 08:56:03 -0500 Subject: [PATCH 1/2] MV-8656: Campaign Revet API --- .../campaign-management/csp/campaign-api.mdx | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/site/docs/messaging/campaign-management/csp/campaign-api.mdx b/site/docs/messaging/campaign-management/csp/campaign-api.mdx index a03cbfe5a..39c994aca 100644 --- a/site/docs/messaging/campaign-management/csp/campaign-api.mdx +++ b/site/docs/messaging/campaign-management/csp/campaign-api.mdx @@ -797,6 +797,61 @@ Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManag ``` +## Re-Vet campaign +This endpoint will send a reverification request to TCR for DCA2 declined campaign. + +### Request URL +PUT`https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet` + +### 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 + + + + + 12055 + CampaignManagement feature is not enabled on account 9999999 + + +``` + +HTTP/1.1 404 Not Found +Content-Type: application/xml +Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet + +```xml + + + + 12189 + Campaign with id 'CTW3YRE' not found" + + +``` + ## Update Campaign TN Relationship ### Assumption From 07b457f898786dcfb632f18990ac310efe826017 Mon Sep 17 00:00:00 2001 From: Nirmit Patel Date: Wed, 8 Mar 2023 09:52:43 -0500 Subject: [PATCH 2/2] Fixing UI display issues --- .../campaign-management/csp/campaign-api.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/site/docs/messaging/campaign-management/csp/campaign-api.mdx b/site/docs/messaging/campaign-management/csp/campaign-api.mdx index 39c994aca..ce8034529 100644 --- a/site/docs/messaging/campaign-management/csp/campaign-api.mdx +++ b/site/docs/messaging/campaign-management/csp/campaign-api.mdx @@ -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 @@ -760,7 +761,7 @@ Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManag This endpoint will update the campaign status to 'EXPIRED'. ### Request URL -DELETE`https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}` +DELETE https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId} ### Examples @@ -801,7 +802,7 @@ Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManag This endpoint will send a reverification request to TCR for DCA2 declined campaign. ### Request URL -PUT`https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet` +PUT https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManagement/10dlc/campaigns/{campaignId}/revet ### Examples @@ -838,11 +839,11 @@ Location: https://dashboard.bandwidth.com/api/accounts/{accountId}/campaignManag ``` +```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