Skip to main content
POST
Restart detection for an upload whose session expired
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

Detection sessions expire after 7 days and are then destroyed, so POST /file/confirm-detection/{sessionId} has nothing to act on — the session it needs is gone. The uploaded file itself is still in storage, so this reads it back and starts detection again on the same Files row, keeping its id and history rather than creating a duplicate. Stops at a fresh session awaiting confirmation. It does not auto-confirm: mapping a statement to a royalty source is the user’s decision. Authorization: admin or higher — the same privilege as confirming a detection, because it leads to that decision.

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

The file to re-detect.

Response

Detection restarted; confirm the result to finish processing

status
string
Example:

"success"

message
string
data
object