POST
/
card
cURL
curl --request POST \
  --url https://development.knotapi.com/card \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "task_id": "123456",
  "jwe": "ey..."
}'
{
"message": "Success"
}

Receiving a successful response from this endpoint means your request has passed validations, including for the jwe.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.

Body

application/json

The input parameters required for switching a card.

The body is of type object.

Response

200
application/json

Successful request. Receiving this response means your request has passed validations, including the jwe.

The response is of type object.