PATCH
/
cardproduct
/
{id}
curl --request PATCH \
  --url https://api.treasuryprime.com/cardproduct/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "card_controls": {
    "card_controls": {
      "controls": [
        {
          "amount": "3000.00",
          "interval": "rolling",
          "type": "spend_limit",
          "version": 1,
          "window": 1
        }
      ],
      "name": "example_control1"
    }
  }
}'
{
  "card_auth_loop_endpoint_id": null,
  "card_back_image_file_id": null,
  "card_controls": {
    "card_controls": {
      "controls": [
        {
          "amount": "3000.00",
          "interval": "rolling",
          "type": "spend_limit",
          "version": 1,
          "window": 1
        }
      ],
      "name": "example_control1"
    }
  },
  "card_front_image_file_id": null,
  "created_at": "2021-02-09T18:58:31Z",
  "id": "cdpt_zuhqnmz7e085",
  "status": "active",
  "three_domain_secure_config": null,
  "type": "virtual",
  "updated_at": "2021-02-09T18:58:31Z",
  "userdata": null
}

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

id
string
required

Unique identifier for object

Body

application/json
The cardproduct to update

The body is of type object.

Response

200 - application/json
The cardproduct updated

The response is of type object.