PATCH
/
users
/
{userID}
/
passkeyChallenges
/
{passkeyChallengeID}
Update a passkey challenge for a user
curl --request PATCH \
  --url https://backendapi.corbado.io/v2/users/{userID}/passkeyChallenges/{passkeyChallengeID} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": "pending"
}'
{
  "challengeID": "<string>",
  "type": "register",
  "value": "<string>",
  "status": "pending",
  "created": 123,
  "createdMs": 123,
  "expires": 123
}

Authorizations

Authorization
string
header
required

Basic authentication is used to authenticate requests to the Backend API. The username is the project ID and the password is the API secret.

The project ID and API secret can be found in the Developer Panel.

Path Parameters

userID
string
required

Unique identifier of the user. Format: usr-<number>.

Example:

"usr-4693224802260150919"

passkeyChallengeID
string
required

ID of a passkey challenge

Body

application/json
status
enum<string>
required
Available options:
pending,
completed,
consumed

Response

Passkey challenge has been updated.

challengeID
string
required
type
enum<string>
required
Available options:
register,
authenticate
value
string
required
status
enum<string>
required
Available options:
pending,
completed,
consumed
created
integer
required
createdMs
integer
required
expires
integer
required