Users

Upload profile photo

Changed on

Uploads a profile photo for the specified user. The file is stored in the tenant-scoped files table. If the user already has a profile photo, the old one is deleted and replaced. Uses multer for multipart file handling.

post/users/{id}/profile-photo

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/users/{id}/profile-photo
  • Auth
    HTTP bearer

Path parameters

idinteger required

User ID

Request body multipart/form-data

photostring binary required

Image file (JPEG, PNG, etc.)

Response

Profile photo uploaded

messagestring

Example response

{
  "message": "OK"
}

Changes

    • info

      api operation id uploadUserProfilePhoto was added

    • info

      api tag Users added

    • info

      api tag Users - Profile Photo removed

    • info

      api operation id uploadUserProfilePhoto removed and replaced with

    • info

      api tag Users - Profile Photo added

    • info

      api tag Users removed