Create an album - OsiriX-Foundation/KheopsAuthorization GitHub Wiki
Used to create an new album. When a user create a new album, he is automatically an admin.
URL : /albums
Method : POST
Auth Required : Authorization with a JWT Bearer token with the user as the sub claim.
Headers
-
Accept
: If present, require that this value beapplication/json
-
Content-Type
: Must be :application/x-www-form-urlencoded
Parameters
-
name={name}
max 255 characters -
description={description}
by default : empty string (Optional) max 2048 characters -
addUser={true/false}
by default : false (Optional) -
downloadSeries={true/false}
by default : true (Optional) -
sendSeries={true/false}
by default : true (Optional) -
deleteSeries={true/false}
by default : false (Optional) -
addSeries={true/false}
by default : true (Optional) -
writeComments={true/false}
by default : true (Optional)
Success Response
-
Status :
201 Created
{
"album_id": "37bs6GW5cR",
"name": "album name",
"description": "some description",
"created_time": "2018-09-21T11:50:23",
"last_event_time": "2018-09-21T11:50:23",
"number_of_users": 1,
"number_of_comments": 0,
"number_of_studies": 0,
"add_user": false,
"download_series": true,
"send_series": true,
"delete_series": false,
"add_series": true,
"write_comments": true,
"is_favorite": false,
"notification_new_series": true,
"notification_new_comment": true
}
Error Response
If the user is not found
-
Status :
404 Not Found