curl --request PATCH \
--url https://api.scoutworks.app/api/v1/planned-meetings/{meetingId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"notes": "<string>",
"activities": [
{
"id": "<string>",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 300
}
]
}
'import requests
url = "https://api.scoutworks.app/api/v1/planned-meetings/{meetingId}"
payload = {
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"notes": "<string>",
"activities": [
{
"id": "<string>",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 300
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2023-11-07T05:31:56Z',
title: '<string>',
notes: '<string>',
activities: [
{
id: '<string>',
activityId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
durationMinutes: 300
}
]
})
};
fetch('https://api.scoutworks.app/api/v1/planned-meetings/{meetingId}', 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"
}
}{
"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"
]
}Update a planned meeting
Changes only the fields you send. activities replaces the meeting’s activities: to add one, send the ones it has, by id, and the new one. 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.
Send the ETag you last read for the meeting as If-Match: if the meeting has changed since, the request answers 412 stale_write and changes nothing. Optional, and recommended.
curl --request PATCH \
--url https://api.scoutworks.app/api/v1/planned-meetings/{meetingId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"notes": "<string>",
"activities": [
{
"id": "<string>",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 300
}
]
}
'import requests
url = "https://api.scoutworks.app/api/v1/planned-meetings/{meetingId}"
payload = {
"date": "2023-11-07T05:31:56Z",
"title": "<string>",
"notes": "<string>",
"activities": [
{
"id": "<string>",
"activityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"durationMinutes": 300
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
date: '2023-11-07T05:31:56Z',
title: '<string>',
notes: '<string>',
activities: [
{
id: '<string>',
activityId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
durationMinutes: 300
}
]
})
};
fetch('https://api.scoutworks.app/api/v1/planned-meetings/{meetingId}', 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"
}
}{
"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
Path Parameters
Body
Send only the fields to change. A field not listed here is refused with a 400.