To see an example of how to include query parameters in a request, see theJSON API Overviewpage.
Parameters
Parameter name
Value
Description
Path parameters
accessId
string
The access ID of the HMAC key being updated.
projectIdentifier
string
The project ID or project number of the project that owns the service account of the
specified HMAC key.
Request body
In the request body, supply the metadata portion of aProjects.hmacKeys resourcewith the following properties:
Property name
Value
Description
Notes
Optional Properties
etag
string
HTTP 1.1Entity tagfor
the HMAC key. Inclusion of an etag makes the operation's success conditional on
the HMAC key's current etag matching the given value.
state
string
The state of the key. Can be updated to ACTIVE or INACTIVE. To set the state of the
key to DELETED, use the `hmacKeys.delete` method.
writable
Response
If successful, this method returns the metadata portion of aProjects.hmacKeys resourcein the response body.
For information about status and error codes returned by this API, see thereference page.
Try it!
Use the APIs Explorer below to call this method on live data and see the response.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-24 UTC."],[],[]]