curl --request POST \
--url https://{organization}.rescueconsole.com/api/registry/reviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flag_id": "5f1c9e2a-7b3d-4e8f-9a61-2c4d8b0e7f13",
"vote": "corroborate",
"notes": "The same applicant applied to Contoso in February with the same reference number."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flag_id: '5f1c9e2a-7b3d-4e8f-9a61-2c4d8b0e7f13',
vote: 'corroborate',
notes: 'The same applicant applied to Contoso in February with the same reference number.'
})
};
fetch('https://{organization}.rescueconsole.com/api/registry/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/registry/reviews"
payload = {
"flag_id": "5f1c9e2a-7b3d-4e8f-9a61-2c4d8b0e7f13",
"vote": "corroborate",
"notes": "The same applicant applied to Contoso in February with the same reference number."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"flag_id": "<string>",
"reviewing_tenant_id": "<string>",
"vote": "corroborate",
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"id": "<string>",
"flag_id": "<string>",
"reviewing_tenant_id": "<string>",
"vote": "corroborate",
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Review a flag
Your organization’s vote on a flag ANOTHER organization filed. You cannot review your own organization’s flag (403), and a revoked flag cannot be reviewed (409). You can review a flag you can read: an active network flag, or a network flag still pending review, which is what your organization is asked to review. Any other flag, private, disputed, or not there at all, answers 404. Each organization has one review per flag: sending again replaces your vote and your notes, and leaving notes out clears them.
After every review the flag’s status is worked out again from all the reviews. When two or more organizations dispute it, it becomes disputed, whatever it was before. Otherwise, when two or more organizations corroborate a flag that is pending review, it becomes active, and from then on other organizations can find it and read it. A vote of insufficient evidence is counted but changes no status. A disputed flag does not go back to active.
Other organizations can see your review, named by your organization’s ID, in the flag’s reviews and history. Needs write on Registry.
curl --request POST \
--url https://{organization}.rescueconsole.com/api/registry/reviews \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"flag_id": "5f1c9e2a-7b3d-4e8f-9a61-2c4d8b0e7f13",
"vote": "corroborate",
"notes": "The same applicant applied to Contoso in February with the same reference number."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
flag_id: '5f1c9e2a-7b3d-4e8f-9a61-2c4d8b0e7f13',
vote: 'corroborate',
notes: 'The same applicant applied to Contoso in February with the same reference number.'
})
};
fetch('https://{organization}.rescueconsole.com/api/registry/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/registry/reviews"
payload = {
"flag_id": "5f1c9e2a-7b3d-4e8f-9a61-2c4d8b0e7f13",
"vote": "corroborate",
"notes": "The same applicant applied to Contoso in February with the same reference number."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"flag_id": "<string>",
"reviewing_tenant_id": "<string>",
"vote": "corroborate",
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"id": "<string>",
"flag_id": "<string>",
"reviewing_tenant_id": "<string>",
"vote": "corroborate",
"notes": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Body
Response
Your organization had already reviewed this flag; the review, as it now is.