List of credentials for accessing a trunk
Path parameters
-
The SID of the Trunk to associate the credential list with.
Minimum length is
34, maximum length is34. Format should match the following pattern:^TK[0-9a-fA-F]{32}$.
Body
-
The SID of the Credential List that you want to associate with the trunk. Once associated, we will authenticate access to the trunk against this list.
Minimum length is
34, maximum length is34. Format should match the following pattern:^CL[0-9a-fA-F]{32}$.
POST
/v1/Trunks/{TrunkSid}/CredentialLists
curl \
--request POST 'https://trunking.twilio.com/v1/Trunks/{TrunkSid}/CredentialLists' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'CredentialListSid=CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Request example
{"CredentialListSid" => "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
Response examples (201)
{
"sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://trunking.twilio.com/v1/Trunks/TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialLists/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"trunk_sid": "TKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2018-05-02T17:29:30Z",
"date_updated": "2018-05-02T17:29:30Z",
"friendly_name": "friendly_name"
}