Get an event’s risk assessment status
curl --request GET \
--url https://api.scoutworks.app/api/v1/events/{eventId}/risk-assessment-status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/events/{eventId}/risk-assessment-status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/events/{eventId}/risk-assessment-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "approved",
"hasEvidence": true,
"exists": true,
"approved": true,
"approvedAt": "2023-11-07T05:31:56Z",
"lastReviewedOn": "2023-12-25",
"reviewDueOn": "2023-12-25",
"attestedAt": "2023-11-07T05:31:56Z",
"attestationExpiresAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Compliance
Get an event’s risk assessment status
Whether one of the group’s events has a risk assessment, and whether it is approved, with its review dates: the same evidence the app’s “no risk assessment” warning reads. Never the assessment itself. An event GET /events does not list, and a joint event another group hosts, reads as not found.
GET
/
events
/
{eventId}
/
risk-assessment-status
Get an event’s risk assessment status
curl --request GET \
--url https://api.scoutworks.app/api/v1/events/{eventId}/risk-assessment-status \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/events/{eventId}/risk-assessment-status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scoutworks.app/api/v1/events/{eventId}/risk-assessment-status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "approved",
"hasEvidence": true,
"exists": true,
"approved": true,
"approvedAt": "2023-11-07T05:31:56Z",
"lastReviewedOn": "2023-12-25",
"reviewDueOn": "2023-12-25",
"attestedAt": "2023-11-07T05:31:56Z",
"attestationExpiresAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"error": {
"code": "invalid_api_key",
"message": "<string>"
},
"errorRef": "<string>",
"retryAfter": 0,
"matchingIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}