Hanzo
OpenapiIam

Changes a signing certificate's settings.

Changes a signing certificate's settings. What it is called does not change, and neither does when it was added.

POST /v1/iam/certs/update

Addresshttps://api.hanzo.ai/v1/iam/certs/update
MethodPOST
Operationpost_iam_certs_update
AuthAuthorization: Bearer $HANZO_API_KEY

Changes a signing certificate's settings. What it is called does not change, and neither does when it was added.

A PUT here is a METADATA edit — display name, expiry, provider. It overlays only the fields the request actually SET onto the loaded row: a field the JSON omits (or leaves at its zero value) keeps what the row holds, rather than blanking it. That is load-bearing, not a nicety. A read serves the public Certificate (Mask hides only PrivateKey and AccessSecret), so a client that reads a cert, changes one field, and writes it back sends the masked halves empty and every other field it did not touch at its zero value — and the old full-struct overlay wrote all of those blanks back. Blanking CryptoAlgorithm alone drops the cert from the JWKS (oidc.Publishes turns false), so every token under its kid stops verifying; blanking Provider/Account/ExpireTime breaks ACME renewal and expiry — all from a request that only meant to rename it. Absent-or-zero means "unchanged", so the deployment (key) and a rotation (cert) remain the only way key or published material changes; the metadata API cannot clear it.

The overlay is generic — it copies every set field, so a field nobody has added yet is carried without a line here — and leaves three things the request may not move: the bound Model (id, createdAt, key, snapshot), the natural key (owner/name address the row, they do not mutate it), and the creation stamp.

Request

20 fields, body application/json (required).

FieldInTypeRequiredDescription
accessKeybodystring
accessSecretbodystring
accountbodystring
bitSizebodyinteger
certificatebodystring
createdAtbodystring (date-time)
createdTimebodystring
cryptoAlgorithmbodystring
deletedbodyboolean
displayNamebodystring
domainExpireTimebodystring
expireInYearsbodyinteger
expireTimebodystring
idbodystring
namebodystring
ownerbodystring
providerbodystring
scopebodystring
typebodystring
updatedAtbodystring (date-time)

Response

StatusBodyMeaning
200iam.Certok

200 body — 20 fields.

FieldInTypeAlwaysDescription
accessKeybodystring
accessSecretbodystring
accountbodystring
bitSizebodyinteger
certificatebodystring
createdAtbodystring (date-time)
createdTimebodystring
cryptoAlgorithmbodystring
deletedbodyboolean
displayNamebodystring
domainExpireTimebodystring
expireInYearsbodyinteger
expireTimebodystring
idbodystring
namebodystring
ownerbodystring
providerbodystring
scopebodystring
typebodystring
updatedAtbodystring (date-time)

Failure carries the platform error shape — see Errors.

Examples

hanzo iam certs update

IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page