Skip to content
Athena User Guide
Esc
↑↓navigate↵open⌘Jpreview

Lock a live challenge and reap its instances

POST/api/admin/challenges/{id}/lock
Path parameters
idstringrequired
Request body
requiredapplication/json
reasonstringrequired
min length 1 · max length 500
Responses
200

Success

okbooleanrequired
statusstringrequired
terminatedstring[]required
failedobject[]required
Show properties
Array of object
idstringrequired
errorstringrequired
401

Unauthorized

errorstringrequired
404

Not found

errorstringrequired
409

Conflict

errorstringrequired
Show properties
Any of:
string
string
string
string
string
string
string
string
422

Validation failed

typestringrequired
onstringrequired
summarystring
messagestring
foundany
propertystring
expectedstring
500

Unhandled server error

errorstringrequired
Try it
Server
Parameters
Bodyapplication/json
Request
curl -X POST '/api/admin/challenges/string/lock' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "reason": "string"
}'
Response
{
  "ok": true,
  "status": "locked",
  "terminated": [
    "string"
  ],
  "failed": [
    {
      "id": "string",
      "error": "string"
    }
  ]
}

Was this page helpful?