import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.campaign.deactivate('campaignId');
console.log(response.time);{
"time": 123,
"record_type": "<string>",
"message": "<string>"
}Terminate a campaign. Note that once deactivated, a campaign cannot be restored.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const response = await client.campaign.deactivate('campaignId');
console.log(response.time);{
"time": 123,
"record_type": "<string>",
"message": "<string>"
}Was this page helpful?