---
title: "Flag Presence"
method: POST
path: "/presence/flag"
tags: ["presence"]
---

# Flag Presence

`POST /presence/flag`

Flag the student as having lost focus.

This endpoint is triggered when a student's exam page loses focus.
It creates or updates a document in the 'presence' collection using the
Presence model to flag the student.

## Response `200`

Successful Response

- FlagResponse — Response model for the flag endpoint.
  - `message` string, required

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
