curl --request PATCH \
--url https://schoolmaker.co/api/v1/custom_code \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_code_head": "<!-- Updated head snippet -->"
}
'{
"custom_code_head": "<!-- Head snippet -->",
"custom_code_body": "<!-- Body snippet -->"
}{
"error": "Access denied"
}{
"error": "Invalid arguments: /attributes/custom_code_body type"
}Custom code
Update Custom Code
Updates your school’s custom code and notifies the school owner. Omitted fields remain unchanged.
PATCH
/
custom_code
curl --request PATCH \
--url https://schoolmaker.co/api/v1/custom_code \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"custom_code_head": "<!-- Updated head snippet -->"
}
'{
"custom_code_head": "<!-- Head snippet -->",
"custom_code_body": "<!-- Body snippet -->"
}{
"error": "Access denied"
}{
"error": "Invalid arguments: /attributes/custom_code_body type"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/jsonapplication/x-www-form-urlencoded
- Option 1
- Option 2
Code inside the tag. Omission preserves the current value. An empty string clears it. Null is rejected.
Maximum string length:
200000Code immediately before the closing tag. Omission preserves the current value. An empty string clears it. Null is rejected.
Maximum string length:
200000Was this page helpful?