-
Notifications
You must be signed in to change notification settings - Fork 13
Revoke a Capability Token
gerome12 edited this page May 28, 2021
·
6 revisions
This resource can be used by a user that want to revoke a capability token.
URL : /capabilities/{capability_id}/revoke
Method : POST
Auth Required : Authorization with a JWT Bearer token with the user as the sub claim.
Success Response
If the token was revokedsuccessfully.
-
Status :
200 OK
{
"id": "KbSVRVsa0r",
"secret": "yCq8BB4f5OESEknoLUbL0Z",
"title": "Twitter token",
"issued_at_time": "2018-10-22T14:20:59.790Z",
"not_before_time": "2018-10-22T14:20:59.734Z",
"expiration_time": "2019-01-22T14:20:59.734Z",
"revoke_time": "2018-11-12T13:13:43.123Z",
"revoked": true,
"read_permission": true,
"write_permission": false,
"download_permission": true,
"appropriate_permission": false,
"scope_type": "album",
"album": {
"id": "qs78F5Cd2X",
"name" "album name"
}
"created_by": {
"email": "[email protected]",
"name": "user name",
"sub": "3685d976-f1d6-443c-95d4-95ee4b749878"
}
"revoked_by": {
"email": "[email protected]",
"name": "user name",
"sub": "3685d976-f1d6-443c-95d4-95ee4b749878"
}
or
"scope_type": "user"
}
Error Response
If the {capabiliti_id} is unknow
-
Status :
404 Not Found
- Authentication API
- Study List
- Studies/Series Favorites
- Working with the Inbox
- DICOMweb Capability Tokens
- Webhooks
-
Working with Albums
- Album List
- Get an Album
- Create an album
- Edit an album
- Delete an album
- Add a study
- Add a series
- Remove a study
- Remove a series
- Add a User
- Remove a User
- Get the list of Users
- Add and upgrade an user to Admin
- Downgrade an admin to User
- Add an album to favorites
- Remove an album from favorites
- Post a comment
- Get a list of events (comments and mutations)
- Others
- Report Providers