These endpoints allow management of the user account associated with the current session or API key. Unauthorized clients will receive for calls to all account endpoints.
Get the complete respresentation for the account associated with the current session or API key.
Status: 200 OK
{
"administrator": true,
"groups": [],
"identicon": "6be6d0a72a16cb633144ec03cdaef77804c6f94770184f83e0899fe6bdcb77ee",
"settings": {
"skip_quick_analyze_dialog": true,
"show_ids": false,
"show_versions": false,
"quick_analyze_algorithm": "pathoscope_bowtie"
},
"permissions": {
"cancel_job": true,
"create_ref": true,
"create_sample": true,
"modify_hmm": true,
"modify_subtraction": true,
"remove_file": true,
"remove_job": true,
"upload_file": true
},
"primary_group": "",
"last_password_change": "2018-04-27T22:49:11.654000Z",
"email": "[email protected]",
"id": "igboyes"
}
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
Change the email address associated with the account associated with the current session or API key.
Name | Type | Required | Description |
---|---|---|---|
string | false | an email address | |
old_password | string | false | the old password for verification |
new_password | string | false | the new password |
{
"email": "[email protected]"
}
Status: 200 OK
{
"administrator": true,
"groups": [],
"identicon": "6be6d0a72a16cb633144ec03cdaef77804c6f94770184f83e0899fe6bdcb77ee",
"settings": {
"skip_quick_analyze_dialog": true,
"show_ids": false,
"show_versions": false,
"quick_analyze_algorithm": "pathoscope_bowtie"
},
"permissions": {
"cancel_job": true,
"create_ref": true,
"create_sample": true,
"modify_hmm": true,
"modify_subtraction": true,
"remove_file": true,
"remove_job": true,
"upload_file": true
},
"primary_group": "",
"last_password_change": "2018-04-27T22:49:11.654000Z",
"email": "[email protected]",
"id": "igboyes"
}
Status | Message | Reason |
---|---|---|
400 |
Invalid old password | supplied old password is invalid |
401 |
Requires authorization | request is not associated with an authorized session or API key |
422 |
Invalid input | email address is invalid or password fields are missing or invalid |
401 |
Requires authorization | request is not associated with an authorized session or API key |
Get the settings for the account associated with the current session or API key.
Status: 200 OK
{
"skip_quick_analyze_dialog": true,
"show_ids": false,
"show_versions": false,
"quick_analyze_algorithm": "pathoscope_bowtie"
}
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
Update the settings for the account associated with the current session or API key. All fields are optional.
Name | Type | Description |
---|---|---|
quick_analyze_algorithm | string | algorithm to use for quick analysis |
skip_quick_analyze_dialog | boolean | don’t show the quick analysis dialog |
show_ids | boolean | show document ids in client in where possible |
show_versions | boolean | show document versions in client where possible |
{
"show_ids": true
}
Status: 200 OK
{
"skip_quick_analyze_dialog": true,
"show_ids": true,
"show_versions": false,
"quick_analyze_algorithm": "pathoscope_bowtie"
}
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
422 |
Invalid input | invalid settings key or value |
List all API keys for the active account. The keys themselves are not returned.
Status: 200 OK
[
{
"id": "test_0",
"name": "Test",
"administrator": true,
"groups": [],
"permissions": {
"cancel_job": true,
"create_ref": true,
"create_sample": true,
"modify_hmm": true,
"modify_subtraction": true,
"remove_file": true,
"remove_job": true,
"upload_file": true
},
"created_at": "2018-05-01T19:47:03.334000Z"
}
]
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
Create a new API key with the provided permissions. The response to this request is the only time the key string will be returned by the API.
Name | Type | Required | Description |
---|---|---|---|
name | string | true | a non-unique name for the API key |
administrator | boolean | false | sets administrative rights on the API key (default=false ) |
permissions | object | false | an object describing the permissions the new key will have. Any unset permissions will default to false |
{
"name": "Test 2",
"permissions": {
"create_sample": true
}
}
Status: 201 Created
{
"id": "test 2_0",
"name": "Test 2",
"administrator": false,
"groups": [],
"permissions": {
"cancel_job": false,
"create_ref": false,
"create_sample": true,
"modify_hmm": false,
"modify_subtraction": false,
"remove_file": false,
"remove_job": false,
"upload_file": false
},
"created_at": "2018-05-01T21:34:21.271000Z",
"key": "3f80126f767e48099bdd5a3704bf8453"
}
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
422 |
Invalid input | missing or invalid value or permissions object |
Change the permissions of an existing API key.
Name | Type | Required | Description |
---|---|---|---|
administrator | boolean | false | sets administrative rights on the API key |
permissions | object | false | an object describing updates to the key’s permissions |
{
"administrator": true,
"permissions": {
"modify_subtraction": true
}
}
Status: 200 OK
{
"id": "test 2_0",
"name": "Test 2",
"administrator": true,
"groups": [],
"permissions": {
"cancel_job": false,
"create_ref": false,
"create_sample": true,
"modify_hmm": false,
"modify_subtraction": true,
"remove_file": false,
"remove_job": false,
"upload_file": false
},
"created_at": "2018-05-01T21:34:21.271000Z"
}
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
404 |
Not found | API key identified by :id does not exist |
422 |
Invalid input | missing or invalid permissions object |
Delete an existing API key.
Status: 204 No content
Status | Message | Reason |
---|---|---|
401 |
Requires authorization | request is not associated with an authorized session or API key |
404 |
Not found | API key identified by :id does not exist |
Logout by invalidating the current session. It will have no effect for connections authenticated with an API key.
Status: 204 No Content
None