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
}
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
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Unique identifier for object
The cardproduct to update
The body is of type object
.
The cardproduct updated
The response is of type object
.
Was this page helpful?