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

Create a challenge category

POST/api/admin/categories
Request body
requiredapplication/json
namestringrequired
min length 1
Responses
200

Response for status 200

idstringrequired
namestringrequired
createdAtstring<date-time>required
400

Response for status 400

errorstringrequired
401

Unauthorized

errorstringrequired
409

Response for status 409

errorstringrequired
422

Validation failed

typestringrequired
onstringrequired
summarystring
messagestring
foundany
propertystring
expectedstring
500

Response for status 500

errorstringrequired
Try it
Server
Bodyapplication/json
Request
curl -X POST '/api/admin/categories' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
Response
{
  "id": "string",
  "name": "string",
  "createdAt": "2019-08-24T14:15:22Z"
}

Was this page helpful?