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

Edit a challenge difficulty

PATCH/api/admin/difficulties/{id}
Path parameters
idstringrequired
Request body
requiredapplication/json
namestring
descriptionstring | null
Show properties
Any of:
string
string
null
null
Responses
200

Success

Any of:
object
idstringrequired
namestringrequired
createdAtstring<date-time>required
null
null
400

Bad request

errorstringrequired
401

Unauthorized

errorstringrequired
404

Not found

errorstringrequired
409

Conflict

errorstringrequired
422

Validation failed

typestringrequired
onstringrequired
summarystring
messagestring
foundany
propertystring
expectedstring
500

Unhandled server error

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