Get the capacity plan
curl --request GET \
--url https://api.scoutworks.app/api/v1/capacity-plan \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/capacity-plan"
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/capacity-plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"months": [
"<string>"
],
"sections": [
{
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "squirrels",
"capacity": 0,
"currentMembers": 0,
"waiting": 0,
"next3Months": {
"in": 0,
"out": 0
},
"status": "over",
"fullFrom": "<string>",
"months": [
{
"month": "<string>",
"projected": 0,
"projectedWithWaiting": 0,
"agingOut": 0,
"agingIn": 0
}
]
}
],
"notPlaced": 0
}
}{
"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"
]
}Moving on
Get the capacity plan
Each section against its capacity today and for the next 12 months, the same figures as the Capacity tab in Scoutworks: young people now, who moves up in and ages out over the next 3 months, open waiting-list entries, a status word, the first month it reads full, and each month projected with and without the waiting list.
GET
/
capacity-plan
Get the capacity plan
curl --request GET \
--url https://api.scoutworks.app/api/v1/capacity-plan \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scoutworks.app/api/v1/capacity-plan"
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/capacity-plan', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"months": [
"<string>"
],
"sections": [
{
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "squirrels",
"capacity": 0,
"currentMembers": 0,
"waiting": 0,
"next3Months": {
"in": 0,
"out": 0
},
"status": "over",
"fullFrom": "<string>",
"months": [
{
"month": "<string>",
"projected": 0,
"projectedWithWaiting": 0,
"agingOut": 0,
"agingIn": 0
}
]
}
],
"notPlaced": 0
}
}{
"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"
]
}