Hanzo AI
OpenapiO11y

Create users

Creates a member of the caller's org in the pending-invite state and mails them their invitation; the answer is the new user's id.

POST /v1/o11y/users

Addresshttps://api.hanzo.ai/v1/o11y/users
MethodPOST
OperationCreateUser
AuthAuthorization: Bearer $HANZO_API_KEY

Creates a member of the caller's org in the pending-invite state and mails them their invitation; the answer is the new user's id. Admin gate.

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
displayNamebodystring—DisplayName is the new member's display name.
emailbodystring—Email is the new member's address.
frontendBaseUrlbodystring—FrontendBaseUrl is the console origin the invite link is built on.
userRolesbodyo11y.O11yRoleID[]—UserRoles are the roles the member starts with, each by id.
userRoles[].idbodystring—ID is the role id.

Response

StatusBodyMeaning
201o11y.O11yCreatedOutcreated

201 body — 3 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yCreated—
data.idbodystring—ID is the new record's id.
statusbodystring—Status is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y users create

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page