Skip to main content
POST
/
challenges
/
{id}
/
unlock
Unlock a challenge by spending keys
curl --request POST \
  --url https://{subdomain}.nudj.cx/api/v2/integration/challenges/{id}/unlock \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: <api-key>' \
  --data '{
  "amount": 1
}'
{
  "amountDebited": 123,
  "challengeStatus": "<string>"
}

Authorizations

x-api-token
string
header
required

Path Parameters

id
string
required

The ID of the challenge to unlock

Body

application/json
amount
integer
required

The number of keys to spend

Required range: x > 0

Response

Successful response

amountDebited
number
required

The number of keys actually spent

challengeStatus
string
required

The new status of the challenge

I