Create a new Assigned Item.
Create a new Assigned Item.
Path parameters
-
The unique string that we created to identify the CustomerProfile resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^BU[0-9a-fA-F]{32}$
.
POST
/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments
curl \
--request POST 'https://trusthub.twilio.com/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'ChannelEndpointSid=PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&ChannelEndpointType=phone-number'
Request example
{"ChannelEndpointSid"=>"PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "ChannelEndpointType"=>"phone-number"}
Response examples (201)
{
"sid": "RAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trusthub.twilio.com/v1/TrustProducts/BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/ChannelEndpointAssignments/RAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2019-07-31T02:34:41Z",
"trust_product_sid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channel_endpoint_sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"channel_endpoint_type": "phone-number"
}