Set Review State
Change the state of a review result.
GET https://instance.securid.com/aveksa/command.submit?cmd=setReviewState
Request
Parameters
setReviewState | |
format |
|
The id of the review result. | |
The state to set for the review. Valid values :
|
Headers
Bearer token | |
Accept | application/json |
Content-Type | application/json |
Response
Parameters
type | Executed command name |
name | The name of the review. |
status | success or 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=setReviewState&id=1&state=active" \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json"
import requests
url = "https://instance.securid.com/aveksa/command.submit"
params = {
"cmd": "setReviewState",
"format": "json",
"id": "62",
"state": "active"
}
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": "setReviewState",
"format": "json",
"id": "62",
"state": "active"
};
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
- 404 Invalid Review Id
- 412 Missing Parameter
{
"data": {
"type": "setReviewState",
"status": "success",
"name": "UAR-3"
}
}
<html>
<head>
<title>Error</title>
</head>
<body>Could not find a report with the id 62000
Query String=cmd=setReviewState&format=json&id=62000&state=active</body>
</html>
<html>
<head>
<title>Error</title>
</head>
<body>The parameter state is required. Query String=cmd=setReviewState&format=json</body>
</html>