Update Unreviewed Items
Update the unreviewed items for a given review result marking them as either revoke or maintain.
GET https://instance.securid.com/aveksa/command.submit?cmd=updateUnreviewedItems
Request
Parameters
updateUnreviewedItems | |
format | properties - (Default) key=value . most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.json - Useful format for parsing into javascript or other languages. See www.json.org for details. |
The id of the review result. The id parameter is mutually exclusive with the name parameter. | |
revoke, maintain Indicates what state all the unreviewed items should be set to. | |
unassigned | true, false Indicates assigned items should be updated. Defaults to true if not specified. |
asset, component When the state is revoke, this parameter specifies how changes should be grouped to generate change requests. | |
comment | An optional comment to set for the items. |
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
type | Executed command name |
name | The name of the review. |
status | success, failure |
message | Optional message to return along with the status. |
Examples
Request
- Curl
- Python
- Node.js
curl -K -X GET \
"https://instance.securid.com/aveksa/command.submit?cmd=updateUnreviewedItems&format=json&id=1&state=revoke" \
"&grouping=asset&comment=This is a sample comment" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "updateUnreviewedItems",
"format": "json",
"id": "62",
"state": "revoke",
"comment": "This is a sample comment"
}
headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
}
response = requests.get(url, params=params, headers=headers)
if response.status_code == 200:
data = response.json()
print(data)
else:
print(f"Request failed with status code {response.status_code}")
const axios = require('axios');
const url = "https://instance.securid.com/aveksa/command.submit";
const params = {
"cmd": "updateUnreviewedItems",
"format": "json",
"id": "62",
"state": "revoke",
"comment": "This is a sample comment"
};
const headers = {
'Authorization': 'Bearer <token>',
'Content-Type': 'application/json'
};
axios.get(url, { params, headers })
.then(response => {
if (response.status === 200) {
console.log(response.data);
} else {
console.log(`Request failed with status code ${response.status}`);
}
})
.catch(error => {
console.error('Error:', error);
});
Response
- 200 Success
- 200 Review Inactive
- 412 Missing ID
{
"data": {
"type": "updateUnreviewedItems",
"status": "success",
"name": "UAR-3"
}
}
{
"data": {
"type": "updateUnreviewedItems",
"status": "failure",
"name": "Azure Role #3-1",
"message": "The review is not in an active state"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>The parameter id is required.
Query String=cmd=updateUnreviewedItems&format=json&state=revoke</body>
</html>