Skip to content

Attendance (assessor) ​

What assessors do: request queue, confirm or reject, batch, QR reading and account versions.

Pending requests across all classes ​

GET /presencas/pendentes

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

Query parameters

ParameterTypeRequiredConstraintsDescription
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).

Response

FilaAvaliacao

FieldTypeRequiredConstraintsDescription
itemslist of FilaAvaliacaoItemyes
totalintegeryes0…

On error: ErroApi model.

Example

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

Resolve a scanned QR and open the attendance request ​

POST /presencas/qr

Access: Any signed-in person. Rate limit: up to 600 calls every 60 s per origin. Success status: 200.

Request body (QrResolver)

FieldTypeRequiredConstraintsDescription
tokenstringyes20–2000 characters

Response

QrResolvido

FieldTypeRequiredConstraintsDescription
turmaIdstring (uuid)yes
atividadeobjectyes
atividade.idstring (uuid)yes
atividade.dataDatayes
atividade.descricaostring or nullyes
linhaPresencaLinhayes

On error: ErroApi model.

Example

bash
curl -X POST "$API/presencas/qr" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"token":"texto"}'

Confirm or reject a student's attendance ​

PUT /turmas/{turmaId}/atividades/{atividadeId}/matriculas/{matriculaId}/presenca

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

Path parameters

ParameterTypeRequiredConstraintsDescription
matriculaIdstring (uuid)yesEnrollment id.
atividadeIdstring (uuid)yesActivity id.
turmaIdstring (uuid)yesClass id.

Request body (AvaliarPresenca)

FieldTypeRequiredConstraintsDescription
estado"CONFIRMADA" | "REJEITADA"yes
comentariostring or nullnoto 2000 characters
notaslist of Notano0–20 items
nivelSupervisaoNivelSupervisao or nullnoAbsent = keeps what was there; null = clears; only applies when confirming.

Response

PresencaDto

FieldTypeRequiredConstraintsDescription
idstring (uuid)yes
atividadeIdstring (uuid)yes
matriculaIdstring (uuid)yes
estado"SOLICITADA" | "CONFIRMADA" | "REJEITADA"yes
solicitadaEmstringyes
capturadaEmstring or nullyes
relatostring or nullyes
justificativastring or nullyes
excecoeslist of "FORA_DA_JANELA" | "FORA_DA_CERCA" | "OUTRO_DIA"yes
avaliadaEmstring or nullyes
comentarioAvaliadorstring or nullyes
notaslist of NotayesOnly for those who assess the class. Students see their grades in the panel after the class releases them.
nivelSupervisaoNivelSupervisao or nullnoSupervision level given by the last assessor; null = not provided. Only for assessors (students read it in the assessment after release).
relatoEditadoEmstring or nullnoLast edit of the account by the student; null = never edited. After avaliadaEm = edited after the assessment.

On error: ErroApi model.

Example

bash
curl -X PUT "$API/turmas/{turmaId}/atividades/{atividadeId}/matriculas/{matriculaId}/presenca" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"estado":"CONFIRMADA"}'

List an activity's attendance requests ​

GET /turmas/{turmaId}/atividades/{atividadeId}/presencas

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

Path parameters

ParameterTypeRequiredConstraintsDescription
atividadeIdstring (uuid)yesActivity id.
turmaIdstring (uuid)yesClass id.

Response

PresencaLinhas

FieldTypeRequiredConstraintsDescription
atividadeobjectyes
atividade.idstring (uuid)yes
atividade.turmaIdstring (uuid)yes
atividade.dataDatayes
atividade.descricaostring or nullyes
itemslist of PresencaLinhayes

On error: ErroApi model.

Example

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

Earlier versions of an attendance account ​

GET /turmas/{turmaId}/presencas/{presencaId}/relato/versoes

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

Path parameters

ParameterTypeRequiredConstraintsDescription
presencaIdstring (uuid)yesAttendance request id.
turmaIdstring (uuid)yesClass id.

Response

RelatoVersoes

FieldTypeRequiredConstraintsDescription
itemslist of objectyes
items[].idstring (uuid)yes
items[].textostringyes
items[].substituidoEmstringyes

On error: ErroApi model.

Example

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

Confirm several attendance requests at once ​

POST /turmas/{turmaId}/presencas/confirmar-lote

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

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Request body (ConfirmarLote)

FieldTypeRequiredConstraintsDescription
idslist of string (uuid)yes1–100 items

Response

ConfirmarLoteResultado

FieldTypeRequiredConstraintsDescription
itemslist of PresencaDtoyes

On error: ErroApi model.

Example

bash
curl -X POST "$API/turmas/{turmaId}/presencas/confirmar-lote" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"ids":["0198a000-0000-7000-8000-000000000001"]}'

The class's pending request queue ​

GET /turmas/{turmaId}/presencas/pendentes

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

Path parameters

ParameterTypeRequiredConstraintsDescription
turmaIdstring (uuid)yesClass id.

Response

Pendentes

FieldTypeRequiredConstraintsDescription
itemslist of Pendenteyes

On error: ErroApi model.

Example

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

contato@presente.app.br