Create a new Assigned Item

POST /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments

TODO: Resource-level docs

Create a new Assigned Item.

Path parameters

  • TrustProductSid string Required

    The unique string that we created to identify the CustomerProfile resource.

application/x-www-form-urlencoded

Body

  • ChannelEndpointSid string Required

    The SID of an channel endpoint

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$.

  • ChannelEndpointType string Required

    The type of channel endpoint. eg: phone-number

Responses

  • 201

    Created

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • The sid of an channel endpoint

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^[a-zA-Z]{2}[0-9a-fA-F]{32}$.

    • The type of channel endpoint

    • date_created string(date-time) | null

      The ISO 8601 date and time in GMT when the resource was created

    • sid string | null

      The unique string that identifies the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^RA[0-9a-fA-F]{32}$.

    • trust_product_sid string | null

      The unique string that identifies the CustomerProfile resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^BU[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the Identity resource

POST /v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments
curl \
 -X POST https://trusthub.twilio.com/v1/TrustProducts/{TrustProductSid}/ChannelEndpointAssignments \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'ChannelEndpointSid=string&ChannelEndpointType=string'
Request example
{
  "ChannelEndpointSid": "string",
  "ChannelEndpointType": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "channel_endpoint_sid": "string",
  "channel_endpoint_type": "string",
  "date_created": "2023-05-04T09:42:00+00:00",
  "sid": "string",
  "trust_product_sid": "string",
  "url": "https://example.com"
}