POST
/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.jsonUpdate an account Key
Updates the friendly name of a Key resource in an account. Supply FriendlyName to change the resource's descriptive name; the request body may be omitted when you have no field to update.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
AccountSidstringrequired
The account SID, formatted as `AC` followed by 32 hexadecimal characters.
Sidstringrequired
The Key SID, formatted as `SK` followed by 32 hexadecimal characters.
Optional form fields for updating the Key resource.
FriendlyNamestringoptional
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
200Returns the updated Key object with its SID, friendly name, and creation and update timestamps.
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
The AccountSid path parameter must be a 34-character SID beginning with AC and followed by 32 hexadecimal characters, and the Sid path parameter must use the SK SID format. FriendlyName, when supplied, can be up to 64 characters long.