curl --request POST \
--url https://api.scoutworks.app/api/v1/waiting-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"childFirstName": "<string>",
"childLastName": "<string>",
"childDateOfBirth": "<string>",
"parentFirstName": "<string>",
"parentLastName": "<string>",
"parentEmail": "jsmith@example.com",
"parentPhone": "<string>",
"postcode": "<string>",
"addressLine1": "<string>",
"city": "<string>"
}
'import requests
url = "https://api.scoutworks.app/api/v1/waiting-list"
payload = {
"childFirstName": "<string>",
"childLastName": "<string>",
"childDateOfBirth": "<string>",
"parentFirstName": "<string>",
"parentLastName": "<string>",
"parentEmail": "jsmith@example.com",
"parentPhone": "<string>",
"postcode": "<string>",
"addressLine1": "<string>",
"city": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
childFirstName: '<string>',
childLastName: '<string>',
childDateOfBirth: '<string>',
parentFirstName: '<string>',
parentLastName: '<string>',
parentEmail: 'jsmith@example.com',
parentPhone: '<string>',
postcode: '<string>',
addressLine1: '<string>',
city: '<string>'
})
};
fetch('https://api.scoutworks.app/api/v1/waiting-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"targetSection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"status": "received",
"position": 0,
"appliedAt": "2023-11-07T05:31:56Z",
"targetStartDate": "2023-12-25",
"dateOfBirth": "2023-12-25",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"phone": "<string>"
}
}
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"targetSection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"status": "received",
"position": 0,
"appliedAt": "2023-11-07T05:31:56Z",
"targetStartDate": "2023-12-25",
"dateOfBirth": "2023-12-25",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"phone": "<string>"
}
}
}{
"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"
]
}{
"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"
]
}Add a waiting-list application
Adds an application, as your group’s public waiting-list form does and with the same fields and rules: for a joining form on your own website or form tool. A child already on the list (the same name and date of birth) answers 409 possible_duplicate with the matching entry’s id; send ?allowDuplicate=true to add them anyway. With notify: true, the family gets the form’s confirmation email; without it, nobody is emailed. Leaders who follow the waiting list are told in Scoutworks either way. A change is recorded as made by the admin who created the key, marked with the key. Writes count towards the key’s usual limit and a second one of 30 changes a minute. A group whose subscription has lapsed answers 402.
You may send an Idempotency-Key header (unique per application) so a retry after a timeout cannot make it twice. For 24 hours, the same key with the same body answers 200 with the first application and an Idempotent-Replayed: true header; with a different body it answers 400; while the first request is still running it answers 409 conflict.
curl --request POST \
--url https://api.scoutworks.app/api/v1/waiting-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"childFirstName": "<string>",
"childLastName": "<string>",
"childDateOfBirth": "<string>",
"parentFirstName": "<string>",
"parentLastName": "<string>",
"parentEmail": "jsmith@example.com",
"parentPhone": "<string>",
"postcode": "<string>",
"addressLine1": "<string>",
"city": "<string>"
}
'import requests
url = "https://api.scoutworks.app/api/v1/waiting-list"
payload = {
"childFirstName": "<string>",
"childLastName": "<string>",
"childDateOfBirth": "<string>",
"parentFirstName": "<string>",
"parentLastName": "<string>",
"parentEmail": "jsmith@example.com",
"parentPhone": "<string>",
"postcode": "<string>",
"addressLine1": "<string>",
"city": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
childFirstName: '<string>',
childLastName: '<string>',
childDateOfBirth: '<string>',
parentFirstName: '<string>',
parentLastName: '<string>',
parentEmail: 'jsmith@example.com',
parentPhone: '<string>',
postcode: '<string>',
addressLine1: '<string>',
city: '<string>'
})
};
fetch('https://api.scoutworks.app/api/v1/waiting-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"targetSection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"status": "received",
"position": 0,
"appliedAt": "2023-11-07T05:31:56Z",
"targetStartDate": "2023-12-25",
"dateOfBirth": "2023-12-25",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"phone": "<string>"
}
}
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"firstName": "<string>",
"lastName": "<string>",
"targetSection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"status": "received",
"position": 0,
"appliedAt": "2023-11-07T05:31:56Z",
"targetStartDate": "2023-12-25",
"dateOfBirth": "2023-12-25",
"parent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"email": "<string>",
"phone": "<string>"
}
}
}{
"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"
]
}{
"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
Headers
Query Parameters
Body
The fields of the public application form, with the same rules. Needs waiting-list.contacts:read too: an application carries the child’s date of birth and the parent’s details. A field not listed here is refused with a 400.