POST/2010-04-01/Accounts/{AccountSid}/SIP/CredentialLists/{CredentialListSid}/Credentials/{Sid}.json

Update a SIP credential

Updates the password for a credential in a specified credential list. Provide the account, credential list, and credential identifiers, then send the new password in the request body. The password must be at least 12 characters and contain at least one digit and mixed case.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

3 parameters · 1 body field
AccountSidstringrequired
The 34-character account identifier, beginning with `AC` followed by 32 hexadecimal characters.
CredentialListSidstringrequired
The 34-character identifier of the credential list, beginning with `CL` followed by 32 hexadecimal characters.
Sidstringrequired
The 34-character identifier of the credential, beginning with `CR` followed by 32 hexadecimal characters.

Credential update details. You can provide a new password.

Passwordstringoptional
The password that the username will use when authenticating SIP requests. The password must be a minimum of 12 characters, contain at least 1 digit, and have mixed case. (eg `IWasAtSignal2018`)

1 status code
200Returns the updated credential, including its `sid`, account and credential list identifiers, username, creation and update dates, and URI.
sidstringoptional
A 34 character string that uniquely identifies this resource.
account_sidstringoptional
The unique id of the Account that is responsible for this resource.
credential_list_sidstringoptional
The unique id that identifies the credential list that includes this credential.
usernamestringoptional
The username for this credential.
date_createdstringoptional
The date that this resource was created, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
date_updatedstringoptional
The date that this resource was last updated, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format.
uristringoptional
The URI for this resource, relative to `https://api.twilio.com`

Error handling

The AccountSid path parameter must be a 34-character identifier beginning with AC followed by 32 hexadecimal characters; the CredentialListSid path parameter must use the CL prefix, and the Sid path parameter must use the CR prefix. If you provide Password, it must be at least 12 characters and contain at least one digit and mixed case.