---
title: "Update a card's custom fields"
method: POST
path: "/cards/{cardId}/custom-fields"
tags: ["Cards"]
---

# Update a card's custom fields

`POST /cards/{cardId}/custom-fields`

Replace the values of a card's custom fields if they exist or create new custom fields with the given values if they do not exist

## Path parameters

- `cardId` string, required

## Request body

- CardUpdateCardCustomFieldsRequest — Custom fields to be updated
  - `customFields` CardCardCustomFieldRequest[], required — Custom fields
    - `key` string, required — Custom field key
    - `value` string, required — Custom field value

## Response `204`

Custom fields updated successfully

## Other responses

- `400` — Invalid request

---

[API](https://skmtc.net/modulrfinance/apis/modulr-api.md) · [All operations](https://skmtc.net/modulrfinance/apis/modulr-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modulrfinance/modulr-api/versions/cbd52524c8ef/schema)
