curl --request PATCH \
--url https://schoolmaker.co/api/v1/section_groups/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Getting started",
"position": 1
}
'{
"id": "GROUP_ID",
"product_id": "PROGRAM_ID",
"name": "Getting started",
"position": 1
}{
"error": "Access denied"
}{
"error": "You do not have permission to perform this action"
}{
"error": "Record not found"
}{
"error": "Invalid arguments"
}{
"error": "Too many requests"
}Section Groups
Set Section Group Details
Updates a section group’s name or position.
PATCH
/
section_groups
/
{id}
curl --request PATCH \
--url https://schoolmaker.co/api/v1/section_groups/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Getting started",
"position": 1
}
'{
"id": "GROUP_ID",
"product_id": "PROGRAM_ID",
"name": "Getting started",
"position": 1
}{
"error": "Access denied"
}{
"error": "You do not have permission to perform this action"
}{
"error": "Record not found"
}{
"error": "Invalid arguments"
}{
"error": "Too many requests"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Required string length:
1 - 255Body
application/json
- Option 1
- Option 2
Group title, up to 100 characters. Defaults to the school language's standard group name. Send null or an empty string to restore this name.
Maximum string length:
100Position within the program, starting at 1. Defaults to the end on creation. Moving a group shifts the other groups. Must fit the number of groups in the program. Null is not accepted.
Required range:
x >= 1Was this page helpful?