Users
User accounts and profiles.
curl -X GET "https://example.com/api/users/me"{ "display_name": "string", "email": "string", "has_avatar": false, "id": "string", "is_superadmin": false, "lang": "string", "name": "string", "permission_overrides": { "property1": null, "property2": null }, "role": "string", "tenant_id": "string", "tenant_role_settings": { "property1": null, "property2": null }}Update the user's language or display name, validating supported languages.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PATCH "https://example.com/api/users/me" \ -H "Content-Type: application/json" \ -d '{}'{ "display_name": "string", "email": "string", "has_avatar": false, "id": "string", "is_superadmin": false, "lang": "string", "name": "string", "permission_overrides": { "property1": null, "property2": null }, "role": "string", "tenant_id": "string", "tenant_role_settings": { "property1": null, "property2": null }}Return the current user's private-cacheable avatar, or 404 when none is set.
Response Body
application/json
curl -X GET "https://example.com/api/users/me/avatar"nullReplace the user's avatar with a PNG, JPEG, or SVG image up to 2 MiB.
Request Body
multipart/form-data
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/users/me/avatar"{ "property1": "string", "property2": "string"}curl -X DELETE "https://example.com/api/users/me/avatar"{ "property1": "string", "property2": "string"}Fetch the avatar of any user the requester shares a tenant with.
The requester (auto-injected user_id) must share at least one
active tenant membership with target_user_id. Otherwise 404
(we deliberately do not distinguish "not found" from "forbidden"
to avoid leaking tenant membership).
Path Parameters
Response Body
application/json
application/json
curl -X GET "https://example.com/api/users/string/avatar"null