Skip to content

Edit Users

Endpoint used to edit students in Toolzz LMS, in one or more schools of your institution.

Terminal window
curl --request PUT \
--url 'https://kong.api.toolzz.com.br/api/users/{id}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"user": {
"name": "<string>",
"email": "<string>",
"cpf": "<string>",
"phone": "<string>",
"birth_date": "<string>"
}
}'
{
"user": {
"id": 1,
"name": "<string>",
"academic_register": "<string>",
"cpf": "<string>",
"rg": "<string>",
"cnpj": "<string>",
"phone": "<string>",
"birth_date": "<string>",
"email": "<string>",
"address": {
"cep": "<string>",
"number": 1,
"street": "<string>",
"state": "<string>",
"neighborhood": "<string>",
"complement": "<string>",
"schools_id": []
}
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
idstringUnique identifier of the user.Yes
ParameterTypeDescriptionRequired
namestringUser name to be updated.No
academic_registerstringUser’s academic registration number.No
cpfstringUser’s CPF.No
rgstringUser’s RG.No
emailstringUser’s email address.No
cnpjstringCNPJ of the company linked to the user.No
phonestringUser’s contact phone.No
birth_datestringUser’s date of birth.No
school_idsnumber[]List of identifiers of schools associated with the user.No

Body Parameters — address object (inside user)

Section titled “Body Parameters — address object (inside user)”
ParameterTypeDescriptionRequired
cepstringZIP code of the address.No
numberintAddress number.No
streetstringStreet name of the address.No
statestringState of the address.No
complementstringAddress complement.No
neighborhoodstringNeighborhood of the address.No

KeyTypeDescription
userobjectDetails of the user.
user.idnumberUnique identifier of the user.
user.namestringFull name of the user.
user.academic_registerstringAcademic registration.
user.cpfstringCPF.
user.rgstringRG.
user.cnpjstringCNPJ.
user.phonestringUser phone number.
user.birth_datestringDate of birth.
user.emailstringUser email address.
user.addressobjectUser address details.
user.address.cepstringZIP code.
user.address.numbernumberResidence or apartment number.
user.address.streetstringStreet name.
user.address.statestringState abbreviation.
user.address.neighborhoodstringNeighborhood name.
user.address.complementstringAddress complement (e.g., apartment, floor).
user.address.schools_idarrayList of associated school IDs.

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.