Sample - Twilio API
POST/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json

Update an Account Key

Updates the descriptive name of a Key in an Account. Supply the Account and Key SIDs to identify the resource and optionally provide FriendlyName to change its label. The response contains the updated Key and its metadata.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 1 body field
AccountSidstringrequired
The 34-character SID of the Account whose Key to update, matching the `AC` prefix.
Sidstringrequired
The 34-character SID that identifies the Key to update, matching the `SK` prefix.

Form data containing the Key properties to update.

FriendlyNamestringoptional
A descriptive string that you create to describe the resource. It can be up to 64 characters long.

1 status code
200Returns the updated Key object with its SID, friendly name, creation timestamp, and last update timestamp.
sidstringoptional
The unique string that that we created to identify the Key resource.
friendly_namestringoptional
The string that you assigned to describe the resource.
date_createdstringoptional
The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.

Error handling

AccountSid must be a 34-character Account SID with the AC prefix, and Sid must be a 34-character Key SID with the SK prefix. FriendlyName can be used to set a descriptive label and must not exceed 64 characters.