import sys  
sys.path.append("../plivo-python")  
import plivo 

client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.campaign.number_unlink(
    campaign_id="<Campaign_id>",
    number="14845197139",
    url="https://example.com/test",
    method="POST",
)
print(response)
\{ "api\_id": "eba3f9aa-b4a1-11ec-85a1-0242ac110003", "message": "Request to unlink 12125557777 from campaign CUOGHIN was received and is being processed" \}

This API lets you unlink a number from a campaign.

API Endpoint

DELETE
https://api.plivo.com/v1/Account/{auth_id}/10dlc/Campaign/{campaign_id}/Number/{number}/

Arguments

url
string
Fully qualified URL to which status update callbacks for the message should be sent.
method
string
The HTTP method to be used when calling the URL defined above.

Allowed values: GET, POST

Defaults to POST.

import sys  
sys.path.append("../plivo-python")  
import plivo 

client = plivo.RestClient("<auth_id>", "<auth_token>")
response = client.campaign.number_unlink(
    campaign_id="<Campaign_id>",
    number="14845197139",
    url="https://example.com/test",
    method="POST",
)
print(response)
\{ "api\_id": "eba3f9aa-b4a1-11ec-85a1-0242ac110003", "message": "Request to unlink 12125557777 from campaign CUOGHIN was received and is being processed" \}