Users

Delete profile photo

Changed on

Removes the profile photo from the user record and deletes the associated file from the files table.

delete/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

Response

Profile photo deleted

messagestring
databoolean

true if photo was deleted

Example response

{
  "message": "OK"
}

Changes

    • info

      api operation id deleteUserProfilePhoto was added

    • info

      api tag Users added

    • info

      api tag Users - Profile Photo removed

    • info

      api operation id deleteUserProfilePhoto removed and replaced with

    • info

      api tag Users - Profile Photo added

    • info

      api tag Users removed