Brume · Docs
API

Utilisateurs

Référence OpenAPI générée pour le domaine « Utilisateurs ».

GET
/api/users/me

Response Body

application/json

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  }}
PATCH
/api/users/me

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  }}
GET
/api/users/me/avatar

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"
null
POST
/api/users/me/avatar

Replace 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"}
DELETE
/api/users/me/avatar

Clear the user's avatar and delete its stored private file.

Response Body

application/json

curl -X DELETE "https://example.com/api/users/me/avatar"
{  "property1": "string",  "property2": "string"}
GET
/api/users/{target_user_id}/avatar

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

target_user_id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/users/string/avatar"
null