Skip to content

Add and upgrade an user to Admin

Salvatore Cicciu edited this page Feb 25, 2020 · 1 revision

Used to add an admin or upgrade an user to admin to an album. For adding an admin, the calling user must be an admin.

URL : /albums/{album_id}/users/{user}/admin

Method : PUT

Auth Required : Authorization with a JWT Bearer token with the user as the sub claim. The user must be an admin of the {album}.

Headers

  • Accept : If present, require that this value be application/json

Success Response

  • Status : 204 No Content

Error Response

If the calling user is not an admin.
If the user tries to upgrade himself to admin.

  • Status : 403 Forbidden

If the user is not found.
If the album id does not exist.
If the user is not a member of the album.

  • Status : 404 Not Found
Clone this wiki locally