Hanzo
OpenapiO11y

Creates or regenerates a user's reset-password token: a live token is returned…

Creates or regenerates a user's reset-password token: a live token is returned as it is, an expired one is replaced.

PUT /v1/o11y/users/{id}/reset_password_tokens

Addresshttps://api.hanzo.ai/v1/o11y/users/{id}/reset_password_tokens
MethodPUT
OperationCreateResetPasswordToken
AuthAuthorization: Bearer $HANZO_API_KEY

Creates or regenerates a user's reset-password token: a live token is returned as it is, an expired one is replaced. Admin gate.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

StatusBodyMeaning
201o11y.O11yResetTokenOutcreated

201 body — 6 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yResetToken
data.expiresAtbodystring (date-time)ExpiresAt is when it stops working.
data.idbodystringID is the grant's id.
data.passwordIdbodystringPasswordID is the password record it resets.
data.tokenbodystringToken is the secret that redeems it.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y users reset_password_tokens replace <id>

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page