curl --request POST \
--url https://api.scoutworks.app/api/v1/planned-meetings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.scoutworks.app/api/v1/planned-meetings"
payload = {
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-11-07T05:31:56Z"
}
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({planId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', date: '2023-11-07T05:31:56Z'})
};
fetch('https://api.scoutworks.app/api/v1/planned-meetings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weekNumber": 0,
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"activities": [
{
"id": "<string>",
"source": "scouts",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 0,
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
]
}
],
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
],
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weekNumber": 0,
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"activities": [
{
"id": "<string>",
"source": "scouts",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 0,
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
]
}
],
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
],
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "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"
]
}{
"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 planned meeting
Adds a meeting to a plan, after its last week. Name each activity by its Scouts activity library id (activityId), which brings its badge requirements with it, or by title for one of your own: an activity of that name in your library is used, otherwise one is added. A plan holds at most 20 meetings. A change is made as the admin who created the key, and the meeting names the key, so Scoutworks shows a script did it. Nobody is notified. Publishing the plan to the calendar stays in Scoutworks: a change here reaches a published event when a leader publishes again. 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 meeting) 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 meeting 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/planned-meetings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.scoutworks.app/api/v1/planned-meetings"
payload = {
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"date": "2023-11-07T05:31:56Z"
}
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({planId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', date: '2023-11-07T05:31:56Z'})
};
fetch('https://api.scoutworks.app/api/v1/planned-meetings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weekNumber": 0,
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"activities": [
{
"id": "<string>",
"source": "scouts",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 0,
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
]
}
],
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
],
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"planId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sectionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weekNumber": 0,
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"activities": [
{
"id": "<string>",
"source": "scouts",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 0,
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
]
}
],
"badgeRequirements": [
{
"badgeId": "<string>",
"requirementId": "<string>"
}
],
"eventId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "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"
]
}{
"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
Body
A field not listed here is refused with a 400.