Skip to content

Classes ​

Classes of a discipline: creation, period, assistants and readiness.

List a discipline's classes ​

GET /disciplinas/{disciplinaId}/turmas

Access: Requires the capability LER, in some scope (the response only includes what the person can see). Success status: 200.

Path parameters

ParameterTypeRequiredConstraintsDescription
disciplinaIdstring (uuid)yesDiscipline id.

Query parameters

ParameterTypeRequiredConstraintsDescription
buscastringnoto 100 charactersSearch text (name or email, depending on the route).
limiteintegerno1…200; default: 50How many items per page (1 to 200; the default varies by route, usually 50).
deslocamentointegerno0…100000; default: 0How many items to skip, for paging (up to 100000).
inativos"true" | "false"nodefault: "false"true also includes inactive records.

Response

list of TurmaDto (+ total)

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
disciplinaIdstring (uuid)yes
instituicaoIdstring (uuid)yes
nomestringyes
ativobooleanyes
enderecostring or nullyes
localAtividadestring or nullyes
latnumber or nullyes
lngnumber or nullyes
toleranciaAntesMininteger or nullyes
toleranciaDepoisMininteger or nullyes
notasVisiveisEmData or nullyes
dataInicioData or nullyes
dataFimData or nullyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/disciplinas/{disciplinaId}/turmas" -H "Authorization: Bearer $TOKEN"

Create a class in the discipline ​

POST /disciplinas/{disciplinaId}/turmas

Not idempotent: a class has no unique identifier, so repeating the call creates another class.

Access: Requires the capability CADASTRAR over discipline (params.disciplinaId). Success status: 201.

Path parameters

ParameterTypeRequiredConstraintsDescription
disciplinaIdstring (uuid)yesDiscipline id.

Request body (TurmaCriar)

FieldTypeRequiredConstraintsDescription
nomestringyes1–200 characters
enderecostring or nullnoto 500 characters
localAtividadestring or nullnoto 500 characters
latnumber or nullno-90…90
lngnumber or nullno-180…180
toleranciaAntesMininteger or nullno0…720
toleranciaDepoisMininteger or nullno0…720
notasVisiveisEmData or nullno

Response

TurmaDto

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
disciplinaIdstring (uuid)yes
instituicaoIdstring (uuid)yes
nomestringyes
ativobooleanyes
enderecostring or nullyes
localAtividadestring or nullyes
latnumber or nullyes
lngnumber or nullyes
toleranciaAntesMininteger or nullyes
toleranciaDepoisMininteger or nullyes
notasVisiveisEmData or nullyes
dataInicioData or nullyes
dataFimData or nullyes

On error: ErroApi model.

Example

bash
curl -X POST "$API/disciplinas/{disciplinaId}/turmas" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"nome":"texto"}'

List the classes the person can see ​

GET /turmas

Access: Requires the capability LER, in some scope (the response only includes what the person can see). Success status: 200.

Query parameters

ParameterTypeRequiredConstraintsDescription
buscastringnoto 100 charactersSearch text (name or email, depending on the route).
limiteintegerno1…200; default: 50How many items per page (1 to 200; the default varies by route, usually 50).
deslocamentointegerno0…100000; default: 0How many items to skip, for paging (up to 100000).
inativos"true" | "false"nodefault: "false"true also includes inactive records.
disciplinaIdstring (uuid)noDiscipline id.

Response

list of TurmaDto (+ total)

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
disciplinaIdstring (uuid)yes
instituicaoIdstring (uuid)yes
nomestringyes
ativobooleanyes
enderecostring or nullyes
localAtividadestring or nullyes
latnumber or nullyes
lngnumber or nullyes
toleranciaAntesMininteger or nullyes
toleranciaDepoisMininteger or nullyes
notasVisiveisEmData or nullyes
dataInicioData or nullyes
dataFimData or nullyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/turmas" -H "Authorization: Bearer $TOKEN"

Read a class ​

GET /turmas/{turmaId}

Access: Requires the capability LER over class (params.turmaId). Success status: 200.

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Response

TurmaDto

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
disciplinaIdstring (uuid)yes
instituicaoIdstring (uuid)yes
nomestringyes
ativobooleanyes
enderecostring or nullyes
localAtividadestring or nullyes
latnumber or nullyes
lngnumber or nullyes
toleranciaAntesMininteger or nullyes
toleranciaDepoisMininteger or nullyes
notasVisiveisEmData or nullyes
dataInicioData or nullyes
dataFimData or nullyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/turmas/{turmaId}" -H "Authorization: Bearer $TOKEN"

Update a class ​

PATCH /turmas/{turmaId}

Access: Requires the capability CADASTRAR over class (params.turmaId). Success status: 200.

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Request body (TurmaAtualizar)

FieldTypeRequiredConstraintsDescription
nomestringno1–200 characters
enderecostring or nullnoto 500 characters
localAtividadestring or nullnoto 500 characters
latnumber or nullno-90…90
lngnumber or nullno-180…180
toleranciaAntesMininteger or nullno0…720
toleranciaDepoisMininteger or nullno0…720
notasVisiveisEmData or nullno
ativobooleanno

Response

TurmaDto

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
disciplinaIdstring (uuid)yes
instituicaoIdstring (uuid)yes
nomestringyes
ativobooleanyes
enderecostring or nullyes
localAtividadestring or nullyes
latnumber or nullyes
lngnumber or nullyes
toleranciaAntesMininteger or nullyes
toleranciaDepoisMininteger or nullyes
notasVisiveisEmData or nullyes
dataInicioData or nullyes
dataFimData or nullyes

On error: ErroApi model.

Example

bash
curl -X PATCH "$API/turmas/{turmaId}" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{}'

List the class's assistants ​

GET /turmas/{turmaId}/auxiliares

Access: Requires the capability LER over class (params.turmaId). Success status: 200.

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Query parameters

ParameterTypeRequiredConstraintsDescription
buscastringnoto 100 charactersSearch text (name or email, depending on the route).
limiteintegerno1…200; default: 50How many items per page (1 to 200; the default varies by route, usually 50).
deslocamentointegerno0…100000; default: 0How many items to skip, for paging (up to 100000).
inativos"true" | "false"nodefault: "false"true also includes inactive records.

Response

list of VinculoItem (+ total)

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
usuarioIdstring (uuid)yes
nomestringyes
emailstringyes
papel"ADMIN_PLATAFORMA" | "CURADOR" | "PRECEPTOR" | "COORDENADOR" | "PROFESSOR" | "AUXILIAR"yes
instituicaoIdstring (uuid) or nullyes
disciplinaIdstring (uuid) or nullyes
turmaIdstring (uuid) or nullyes
podeAvaliarbooleanyes
podeCadastrarbooleanyes
ativobooleanyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/turmas/{turmaId}/auxiliares" -H "Authorization: Bearer $TOKEN"

Set the class period (start and end) ​

PUT /turmas/{turmaId}/periodo

Access: Requires the capability LER over class (params.turmaId). Success status: 200.

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Request body (TurmaPeriodo)

FieldTypeRequiredConstraintsDescription
dataInicioData or nullyes
dataFimData or nullyes

Response

TurmaDto

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
disciplinaIdstring (uuid)yes
instituicaoIdstring (uuid)yes
nomestringyes
ativobooleanyes
enderecostring or nullyes
localAtividadestring or nullyes
latnumber or nullyes
lngnumber or nullyes
toleranciaAntesMininteger or nullyes
toleranciaDepoisMininteger or nullyes
notasVisiveisEmData or nullyes
dataInicioData or nullyes
dataFimData or nullyes

On error: ErroApi model.

Example

bash
curl -X PUT "$API/turmas/{turmaId}/periodo" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"dataInicio":"2026-03-10","dataFim":"2026-03-10"}'

What is already in place in the class (counts) ​

GET /turmas/{turmaId}/prontidao

Returns counts only (students with access, assessors, upcoming activities…), never names or emails.

Access: Requires the capability CADASTRAR over class (params.turmaId). Success status: 200.

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Response

TurmaProntidao

FieldTypeRequiredConstraintsDescription
centrobooleanyes
toleranciaPropriabooleanyesThe class's own tolerance; false = the default applies.
atividadesFuturasintegeryes0…Non-cancelled activities from today on (in the institution's time zone).
alunosintegeryes0…
alunosComAcessointegeryes0…Students who already accepted the invitation (active account) and can record attendance.
avaliadoresintegeryes0…People with an active account who can confirm attendance in this class, at any level (class, discipline, institution).
avaliadoresConvidadosintegeryes0…People who will be able to assess but have not accepted the invitation yet.

On error: ErroApi model.

Example

bash
curl -X GET "$API/turmas/{turmaId}/prontidao" -H "Authorization: Bearer $TOKEN"

contato@presente.app.br