PUT
/
cards
/
{id}
curl --request PUT \
  --url https://api.sandbox.sudo.cards/cards/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fundingSourceId": "<string>",
  "status": "active",
  "metadata": "<string>",
  "spendingControls": {
    "allowedCategories": [
      "[]"
    ],
    "blockedCategories": [
      "[]"
    ],
    "channels": {
      "atm": true,
      "pos": true,
      "web": true,
      "mobile": true
    },
    "spendingLimits": [
      {
        "amount": 123,
        "interval": "daily"
      }
    ]
  },
  "cancellationReason": "lost",
  "creditAccountId": "<string>"
}'
"{}"

Authorizations

Authorization
string
header
default:{{APIKey}}
required

Path Parameters

id
string
required

The _id of the card to update.

Body

application/json

Response

200
application/json
200

The response is of type object.