Hanzo
OpenapiIam

Changes how an organization appears across Hanzo: the square mark beside its…

Changes how an organization appears across Hanzo: the square mark beside its name, as an uploaded image or as a single emoji.

POST /v1/iam/organizations/avatar

Addresshttps://api.hanzo.ai/v1/iam/organizations/avatar
MethodPOST
OperationsetOrganizationAvatar
AuthAuthorization: Bearer $HANZO_API_KEY

Changes how an organization appears across Hanzo: the square mark beside its name, as an uploaded image or as a single emoji. Sending an image clears the emoji and sending an emoji clears the image — an organization has one mark, not a preference order — and sending neither clears both, which is how it goes back to being drawn as its initial.

An image is an https link or the bytes inline as a data URL, up to 96 KiB. Anyone who administers the organization may set this; it is not reserved to the platform.

It writes the two fields onto the stored row and touches nothing else, which update cannot do: update replaces the whole record, and a record read back first arrives masked, so a read-modify-write through it would persist the mask over the organization's own credential settings.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
avatarbodystring
emojibodystring
namebodystring
ownerbodystring

Response

StatusBodyMeaning
200iam.Organizationok

200 body — 74 fields.

FieldInTypeAlwaysDescription
accountItemsbodyiam.AccountItem[]
accountItems[].modifyRulebodystring
accountItems[].namebodystring
accountItems[].regexbodystring
accountItems[].tabbodystring
accountItems[].viewRulebodystring
accountItems[].visiblebodyboolean
accountMenubodystring
avatarbodystringHow the organization appears across Hanzo — the square mark beside its name — as an image or as one emoji, never both.
balanceCreditbodynumber
balanceCurrencybodystring
countryCodesbodystring[]
createdAtbodystring (date-time)
createdTimebodystring
dcrPolicybodystring
defaultApplicationbodystring
defaultAvatarbodystring
defaultPasswordbodystring
deletedbodyboolean
disableSigninbodyboolean
displayNamebodystring
emojibodystring
enableSoftDeletionbodyboolean
enableTourbodyboolean
failedSigninFrozenTimebodyinteger
failedSigninLimitbodyintegerPer-organization signin throttle. Zero means "inherit the application default"; a non-zero value overrides it.
faviconbodystring
founderbodystringFounder is the stable storage id of the identity that provisioned this org (self-service onboarding).
hasPrivilegeConsentbodyboolean
idbodystring
initScorebodyinteger
ipRestrictionbodystring
ipWhitelistbodystring
isPersonalbodyboolean
isProfilePublicbodyboolean
kerberosKdcHostbodystring
kerberosKeytabbodystring
kerberosRealmbodystring
kerberosServiceNamebodystring
languagesbodystring[]
ldapAttributesbodystring[]
logobodystring
logoDarkbodystring
masterPasswordbodystring
masterVerificationCodebodystring
mfaItemsbodyiam.MfaItem[]
mfaItems[].namebodystring
mfaItems[].rulebodystring
mfaRememberInHoursbodyinteger
namebodystring
navItemsbodystring[]
orgBalancebodynumberBalance fields are read-only mirrors; authoritative balances live in Commerce (billing.hanzo.ai).
ownerbodystring
passwordExpireDaysbodyinteger
passwordObfuscatorKeybodystring
passwordObfuscatorTypebodystring
passwordOptionsbodystring[]
passwordSaltbodystring
passwordTypebodystring
tagsbodystring[]
themeDatabodyiam.ThemeData
themeData.borderRadiusbodyinteger
themeData.colorPrimarybodystring
themeData.isCompactbodyboolean
themeData.isEnabledbodyboolean
themeData.themeTypebodystring
updatedAtbodystring (date-time)
useEmailAsUsernamebodyboolean
usePermanentAvatarbodyboolean
userBalancebodynumber
userNavItemsbodystring[]
userTypesbodystring[]
websiteUrlbodystring
widgetItemsbodystring[]

Failure carries the platform error shape — see Errors.

Examples

hanzo iam organizations avatar

IAM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page