Hanzo
OpenapiO11y

Renames an API key or moves its expiry.

Renames an API key or moves its expiry.

PUT /v1/o11y/service_accounts/{id}/keys/{fid}

Addresshttps://api.hanzo.ai/v1/o11y/service_accounts/{id}/keys/{fid}
MethodPUT
OperationUpdateServiceAccountKey
AuthAuthorization: Bearer $HANZO_API_KEY

Renames an API key or moves its expiry.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyes
fidpathstringyes
expiresAtbodyintegerExpiresAt is when the key stops working, as a unix timestamp in seconds.
namebodystringName is the key's new name, under the same rules it was created with.

Response

StatusBodyMeaning
204no content

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y service_accounts keys set <id> <fid>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page