Hanzo
OpenapiIam

Saves the calling person's own profile — the name they are shown by, their…

Saves the calling person's own profile — the name they are shown by, their picture, a line about themselves and a link.

PUT /v1/iam/account

Addresshttps://api.hanzo.ai/v1/iam/account
MethodPUT
Operationput_iam_account
AuthAuthorization: Bearer $HANZO_API_KEY

Saves the calling person's own profile — the name they are shown by, their picture, a line about themselves and a link.

Only their own: the request names nobody, so it cannot reach another account. Send only what you are changing; a field you leave out keeps the value it had, and a field you send empty is cleared.

A picture is an https link or an inline image up to 96 KiB, the same value an organization's mark is (schema.AvatarRef) — one rule for how a subject appears, whether the subject is a person or an organization.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
Cookieheaderstring
Authorizationheaderstring
avatarbodystring
biobodystring
displayNamebodystring
homepagebodystring

Response

StatusBodyMeaning
200iam.Answerok
400iam.Answerbad request

200 body — 8 fields.

FieldInTypeAlwaysDescription
codebodystring
databodyobject
data2bodyobject
data3bodyobject
msgbodystring
namebodystring
statusbodystring
subbodystring

Failure carries the platform error shape — see Errors.

Examples

hanzo iam account replace

IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page