PATCH
/
users
/
{userID}
/
challenges
/
{challengeID}
curl --request PATCH \
  --url https://backendapi.corbado.io/v2/users/{userID}/challenges/{challengeID} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "value": "<string>"
}'
{
  "challengeID": "<string>",
  "type": "email_otp",
  "identifierValue": "<string>",
  "value": "<string>",
  "expires": 123,
  "status": "pending"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

userID
string
required

ID of user

challengeID
string
required

ID of challenge

Body

application/json

Response

200
application/json

Challenge has been updated

The response is of type object.