Users

Upload profile photo

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

Path parameters

idinteger required

User ID

Response

Profile photo uploaded

messagestring

Example response

{
  "message": "OK"
}

Changes

Changed in 6 of the 70 revisions of this API.418

    • api operation id uploadUserProfilePhoto was added

      api-operation-id-added

    • api tag Users added

      api-tag-added

    • api tag Users - Profile Photo removed

      api-tag-removed

    • api operation id uploadUserProfilePhoto removed and replaced with

      api-operation-id-removed

    • api tag Users - Profile Photo added

      api-tag-added

    • api tag Users removed

      api-tag-removed

    • api operation id uploadUserProfilePhoto was added

      api-operation-id-added

    • api tag Users added

      api-tag-added

    • api tag Users - Profile Photo removed

      api-tag-removed

  • 55cdc040840c38See the full diff
    • request body became required

      request-body-became-required

    • removed the media type application/json from the request body

      request-body-media-type-removed

    • removed the success response with the status 201

      response-success-status-removed

    • api operation id uploadUserProfilePhoto removed and replaced with

      api-operation-id-removed

    • api tag Users - Profile Photo added

      api-tag-added

    • api tag Users removed

      api-tag-removed

    • added the media type multipart/form-data to the request body

      request-body-media-type-added

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the non-success response with the status 403

      response-non-success-status-added

    • removed the non-success response with the status 401

      response-non-success-status-removed

    • added the success response with the status 200

      response-success-status-added

    • endpoint added

      endpoint-added

    This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 300 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog