Hanzo
OpenapiO11y

Rotates a project's DSN key — bumping its rotation watermark so keys below it…

Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN.

POST /v1/o11y/sentinel/projects/{id}/keys/rotate

Addresshttps://api.hanzo.ai/v1/o11y/sentinel/projects/{id}/keys/rotate
MethodPOST
Operationpost_o11y_sentinel_projects_by_id_keys_rotate
AuthAuthorization: Bearer $HANZO_API_KEY

Rotates a project's DSN key — bumping its rotation watermark so keys below it stop verifying — and returns the project with its new DSN.

Callers need the editor role; the runtime's own gate enforces it.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the project id.

Response

StatusBodyMeaning
200o11y.O11ySentryProjectOutok

200 body — 10 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11ySentryProject
data.createdAtbodystring (date-time)CreatedAt is when the project was created.
data.dsnbodystringDSN is the project's freshly-derived ingest DSN.
data.idbodystringID is the project id.
data.namebodystringName is the project's display name.
data.platformbodystringPlatform is the reporting runtime, e.g.
data.slugbodystringSlug is the project's short name.
data.statusbodystringStatus is the project's lifecycle state: active or disabled.
data.updatedAtbodystring (date-time)UpdatedAt is when the project last changed.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page