Admin

Set a user's avatar

Changed on

Store a base64 encoded avatar (PNG, JPEG, or WebP, up to 512KB) for the user and make it their profile picture. Not available when the identity provider manages the user's picture.

put/admin/users/{userId}/avatar

Request

  • Base URL
    https://cloud.kaneo.app/api
  • URL
    https://cloud.kaneo.app/api/admin/users/{userId}/avatar
  • Auth
    HTTP bearer

Path parameters

userIdstring required

Request body

contentTypestring required

One of image/png, image/jpeg, or image/webp.

datastring required

Base64 encoded image bytes.

Example request

{
  "contentType": "image/png"
}

Response

The new picture

imagestring required

Changes