FruxonDocs
UsersCore

Sets your avatar in this workspace.

Stores the uploaded image in this workspace and makes it your avatar here. Avatars are per workspace, because a workspace's files live in its own storage: the console sends the same picture to each workspace you belong to. The image must be a PNG, JPEG, GIF or WebP of at most 10 MB, recognised by its content rather than its declared type. Only you can set your own avatar, from a signed-in session; API keys cannot.

PUT
/v1/tenants/{tenant}/users/{user}/avatar
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

user*string

Your own user id. Any other id is refused.

tenant*string

The tenant identifier

Request Body

multipart/form-data

file?string

The image.

Response Body

curl -X PUT "https://api.fruxon.com/v1/tenants/string/users/string/avatar"
{
  "id": "string",
  "username": "string",
  "email": "string",
  "firstName": "string",
  "lastName": "string",
  "avatarFileId": "string",
  "status": "INVITED",
  "role": "ADMIN",
  "effectiveScopes": [
    "string"
  ],
  "canCreateWorkspace": false,
  "canChooseCell": false,
  "solutionPartners": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "displayName": "string",
      "role": "ADMIN",
      "status": "APPLIED",
      "canProvision": false
    }
  ],
  "staffRole": "SUPPORT",
  "createdAt": 0,
  "modifiedAt": 0
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}