Skip to content

Attendance (student) ​

What the student does: request attendance, edit the account and generate the activity QR.

Request attendance for an activity ​

POST /me/atividades/{atividadeId}/presenca

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

Path parameters

ParameterTypeRequiredConstraintsDescription
atividadeIdstring (uuid)yesActivity id.

Request body (PresencaSolicitar)

FieldTypeRequiredConstraintsDescription
relatostringnoto 2000 charactersUp to 2000 characters.
justificativastringnoto 2000 charactersRequired when the request falls under an exception.
clienteIdstring (uuid)noGenerated on the device: resending the offline queue does not duplicate.
capturadaEmstring (date-time)noThe moment the device captured the request (offline queue).
latnumberno-90…90
lngnumberno-180…180
precisaoMintegerno0…1000000

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 POST "$API/me/atividades/{atividadeId}/presenca" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{}'

Edit the account of your own attendance ​

PUT /me/atividades/{atividadeId}/presenca/relato

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

Path parameters

ParameterTypeRequiredConstraintsDescription
atividadeIdstring (uuid)yesActivity id.

Request body (RelatoEditar)

FieldTypeRequiredConstraintsDescription
relatostringyesto 2000 characters

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/me/atividades/{atividadeId}/presenca/relato" -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"relato":"texto"}'

Generate the activity QR for the student ​

GET /me/atividades/{atividadeId}/qr

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

Path parameters

ParameterTypeRequiredConstraintsDescription
atividadeIdstring (uuid)yesActivity id.

Response

QrToken

FieldTypeRequiredConstraintsDescription
tokenstringyes
expiraEmstringyes

On error: ErroApi model.

Example

bash
curl -X GET "$API/me/atividades/{atividadeId}/qr" -H "Authorization: Bearer $TOKEN"

contato@presente.app.br