Remove a User - OsiriX-Foundation/KheopsAuthorization GitHub Wiki
Used to remove an user to an album. For removing an user, the calling user must be an admin. This end point can be used for exit an album. In this case, the calling user and the user are same.
URL : /albums/{album_id}/users/{user}
Method : DELETE
Auth Required : Authorization with a JWT Bearer token with the user as the sub claim. The calling user must be an admin or the calling user and the user must be same`.
Success Response
- Status :
202 No Content
Error Response
If the calling user is not an admin or the calling user and the user are the same.
- 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