Assign Messaging Profile To Campaign
Changed onThis endpoint allows you to link all phone numbers associated with a Messaging Profile to a campaign. Please note: if you want to assign phone numbers to a campaign that you did not create with Telnyx 10DLC services, this endpoint allows that provided that you've shared the campaign with Telnyx. In this case, only provide the parameter, tcrCampaignId, and not campaignId. In all other cases (where the campaign you're assigning was created with Telnyx 10DLC services), only provide campaignId, not tcrCampaignId.
Request
- Base URL: https://api.telnyx.com/v2
- URL: https://api.telnyx.com/v2/10dlc/phoneNumberAssignmentByProfile
- Auth: HTTP bearer
Request body
Example request
{
"messagingProfileId": "4001767e-ce0f-4cae-9d5f-0d5e636e7809",
"tcrCampaignId": "CWZTFH1",
"campaignId": "4b300178-131c-d902-d54e-72d90ba1620j"
}Response
Successful Response
Example response
{
"messagingProfileId": "4001767e-ce0f-4cae-9d5f-0d5e636e7809",
"tcrCampaignId": "CWZTFH1",
"campaignId": "4b300178-131c-d902-d54e-72d90ba1620j",
"taskId": "667a80f8-b0a9-49d0-b9ab-a7a1bcc45086"
}Changes
- breaking
the
//response's property type changed fromintegertostring, and format fromint32to no format for status - info
added the optional property
//to the response with the status
- breaking
- breaking
the
//response's property type changed fromstringtointeger, and format from no format toint32for status - info
added the optional property
//to the response with the status
- breaking