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

# Set Card Rules

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

## Request

- Base URL: `https://api.soldo.com`
- URL: `https://api.soldo.com/business/v2/cards/{cardId}/rules`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.soldo.com/oauth/authorize` scopes: `card_write`
- TypeScript: <https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/docs/business/v2/cards/:cardId/rules/put.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/soldo/apis/soldo-business-api-v2-0.md) - [All operations](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/llms.txt) - [OpenAPI document](https://skmtc.dev/soldo/apis/soldo-business-api-v2-0/revisions/23fc5d07b367?raw)
