---
title: "Set Card Rules"
method: PUT
path: "/business/v2/cards/{cardId}/rules"
tags: ["Card Rules"]
---

# Set Card Rules

`PUT /business/v2/cards/{cardId}/rules`

Endpoint to set the `CardRules`.

## Path parameters

- `cardId` string, required — The `Card` ID.

## Headers

- `X-Soldo-Fingerprint` string, required — [Advanced authentication](ref:advanced-authentication): `SHA512SUM` of the fingerprint values listed in the fingerprint order for this endpoint.
- `X-Soldo-Fingerprint-Signature` string, required — [Advanced authentication](ref:advanced-authentication): Signature of the `X-Soldo-Fingerprint`.

## Request body

- UpdateCardRules — A `CardRule` representation.
  - `name` 'OpenCloseMasterLock' | 'OpenClose' | 'OpenCloseAfterOneTx' | 'Online' | 'Contactless', required
  - `enabled` boolean, required — It determines whether the rule is enabled.

## Response `200`

The result is a list of `CardRule`.

- CardRuleList
  - `rules` CardRuleItem[]
    - `name` 'OpenCloseMasterLock' | 'OpenClose' | 'OpenCloseAfterOneTx' | 'Online' | 'Contactless', required
    - `enabled` boolean, required — It determines whether the `CardRule` is enabled.

## Other responses

- `400` — Your request has missing arguments or is malformed.
- `404` — One or more resource requested does not exist.

---

[API](https://skmtc.net/soldo/apis/soldo-business-api-v2-0.md) · [All operations](https://skmtc.net/soldo/apis/soldo-business-api-v2-0/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/soldo/soldo-business-api-v2-0/revisions/7be21448a2b3/schema)
