End contest (v1)
Method & Path
POST /api/v1/workspace/:workspaceId/contests/:contestId/end
Description
Sets status to ended. No new submissions are accepted. Final ranking uses score (desc) then duration in seconds (asc). Public leaderboard becomes available.
Authentication
Required: Workspace token. Persona: Workspace Owner.
Response 200 OK
{ "contest": { "status": "ended", "...": "..." } }
Common Errors
- 409 Conflict: Cannot end from draft without opening first
- 401 Unauthorized