List premises audits
curl --request GET \
--url https://api.scoutworks.app/api/v1/premises-audits \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/premises-audits"
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/premises-audits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"premisesTypes": [
"group_hq"
],
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hireAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questionSetVersion": "<string>",
"status": "in_progress",
"undertakenOn": "2023-12-25",
"completedAt": "2023-11-07T05:31:56Z",
"nextAuditDueOn": "2023-12-25",
"prompts": {
"total": 0,
"answered": 0,
"yes": 0,
"partly": 0,
"no": 0,
"notApplicable": 0
},
"actions": {
"total": 0,
"open": 0,
"overdue": 0
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "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
List premises audits
Safe Scouting premises audits, oldest first, with their status, dates, how many prompts are answered and how, and the actions raised from them. Answers, notes, summaries, evidence and auditors are never returned. Pass includeDeleted=true to include removed records, and updatedSince to read only what changed. A status that changes only because a date has passed is not a change: run a full read daily if you track overdue items.
GET
/
premises-audits
List premises audits
curl --request GET \
--url https://api.scoutworks.app/api/v1/premises-audits \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/premises-audits"
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/premises-audits', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"premisesTypes": [
"group_hq"
],
"locationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hireAssetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"questionSetVersion": "<string>",
"status": "in_progress",
"undertakenOn": "2023-12-25",
"completedAt": "2023-11-07T05:31:56Z",
"nextAuditDueOn": "2023-12-25",
"prompts": {
"total": 0,
"answered": 0,
"yes": 0,
"partly": 0,
"no": 0,
"notApplicable": 0
},
"actions": {
"total": 0,
"open": 0,
"overdue": 0
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": "<string>",
"nextUpdatedSince": "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"
]
}Authorizations
Query Parameters
Response
OK