Create a CredentialListMapping resource for an account.
Credential lists associated with a SIP Domain
Create a CredentialListMapping resource for an account.
Path parameters
-
The unique id of the Account responsible for this resource.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^AC[0-9a-fA-F]{32}$
. -
A 34 character string that uniquely identifies the SIP Domain for which the CredentialList resource will be mapped.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^SD[0-9a-fA-F]{32}$
.
POST
/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json
curl \
--request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/SIP/Domains/{DomainSid}/CredentialListMappings.json' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'CredentialListSid=CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
Request example
{"CredentialListSid"=>"CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
Response examples (201)
{
"sid": "CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/CredentialListMappings/CLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
"domain_sid": "SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "Wed, 11 Sep 2013 17:51:38 +0000",
"date_updated": "Wed, 11 Sep 2013 17:51:38 +0000",
"friendly_name": "Production Gateways IP Address - Scranton"
}