List a flag's reviews
curl --request GET \
--url https://{organization}.rescueconsole.com/api/registry/flags/{id}/reviews \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/registry/flags/{id}/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/flags/{id}/reviews"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"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)"
}Registry reviews
List a flag's reviews
Every organization’s review of one flag, oldest first. The same rule as reading the flag decides whether you may: your own flag always, another organization’s only when it is active and shared with the network, and 404 otherwise. Each review names the organization that made it by its ID, not its name. Needs read on Registry.
A flag pending review that your organization was asked to review is open on the same terms as the flag itself: with write on Registry.
GET
/
api
/
registry
/
flags
/
{id}
/
reviews
List a flag's reviews
curl --request GET \
--url https://{organization}.rescueconsole.com/api/registry/flags/{id}/reviews \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/registry/flags/{id}/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/flags/{id}/reviews"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"results": [
{
"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)"
}