Skip to content

Edit Units

Endpoint used to edit the information of school units in your institution in Toolzz LMS.

Warning: This endpoint will only work correctly if the domain of your institution is manually provided in the URL. Otherwise, the endpoint may fail or return a validation error.

Terminal window
curl --request PUT \
--url 'https://{your-institution-domain}/api/v1/schools/{schoolId}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"groups": [1, 2]
}'
{
"success": true,
"data": {
"id": 1,
"name": "<string>",
"urlSlug": "<string>",
"contractNumber": "<string>",
"tags": [],
"taxId": "<string>",
"groups": [{ "id": 1, "name": "<string>" }],
"subgroups": [],
"specialties": [],
"colorScheme": {
"primary": "<string>",
"secondary": "<string>",
"buttonText": "<string>"
},
"social": {
"facebook": "<string>",
"youtube": "<string>",
"instagram": "<string>"
},
"location": {
"street": "<string>",
"number": "<string>",
"additionalDetails": "<string>",
"district": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>"
},
"features": {
"enableTeacherRegistration": true,
"enableStudentRegistration": true,
"enableGoogleLogin": false,
"enableLoginByDocument": false,
"enableLoginByEmail": true,
"enableForum": true,
"enableViewCounter": true,
"enableRating": true,
"isPartOfProgram": false,
"enableReviews": true,
"showSchoolIconInMenu": true,
"showIconDetails": true,
"replicateInstitutionMenuLinks": false,
"displaySchoolAccessButton": true
},
"createdAt": "<string>",
"updatedAt": "<string>"
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
schoolIdstringIdentifier of the unit to be edited.Yes
ParameterTypeDescriptionRequired
namestringName of the unit to be edited. Maximum of 255 characters.No
contractNumberstringUnit contract number. Must be unique. Maximum of 50 characters.No
tagsarrayArray of strings with maximum of 10 elements, containing tags related to the school.No
taxIdstringUnit’s CNPJ (Brazilian tax ID). Must be a valid CNPJ.No
groupsnumber[]Array containing group identifiers (Level 1 filters) of the institution.No
subgroupsnumber[]Array containing subgroup identifiers (Level 2 filters) of the institution.No
specialtiesnumber[]Array containing specialty identifiers (Level 3 filters) of the institution.No
colorSchemeobjectObject containing the color values to be used for the unit.No
locationobjectObject containing the unit’s location data.No
featuresobjectObject containing the unit’s settings.No

KeyTypeDescription
successbooleanIndicates if the request was successful.
dataobjectDetails of the edited educational unit.
data.idnumberUnique identifier of the unit.
data.namestringName of the unit.
data.urlSlugstringURL slug of the unit.
data.contractNumberstringContract number associated with the unit.
data.tagsarrayTags associated with the unit.
data.taxIdstringTax identification number (CNPJ).
data.groupsarrayList of groups associated with the unit.
data.subgroupsarrayList of subgroups associated with the unit.
data.specialtiesarrayList of specialties associated with the unit.
data.colorSchemeobjectColor scheme configuration.
data.socialobjectSocial media information.
data.locationobjectLocation details of the unit.
data.featuresobjectEnabled features for the unit.
data.createdAtstringDate and time the unit was created.
data.updatedAtstringDate and time the unit was last updated.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.