New Report Provider - OsiriX-Foundation/KheopsAuthorization GitHub Wiki
Used to create an new report provider for an album. The user must be an admin.
URL : /albums/{album_id}/reportproviders
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}
url={url}
Success Response
- Status :
201 Created
{
"name": "a name",
"url": "http://myreportprovider/.well-known/kheops-report-configuration",
"client_id": "q9ZTMv3fW7ta0Npg1caGMF",
"user": {
"email": "[email protected]",
"sub": "c2fd0b66-dac4-4b98-9341-d4f3b303bd4e"
},
"created_time": "2019-05-10T08:20:23.038"
}
Error Response
If the user is not found If the album is not found If the user is not an admin
- Status :
404 Not Found
If the url is not valid
- Status :
400 Bad Request