---
title: "Update Custom Field"
method: PUT
path: "/transactions/custom-fields/{customFieldId}"
tags: ["Custom Fields"]
---

# Update Custom Field

`PUT /transactions/custom-fields/{customFieldId}`

Update an existing [custom field](/docs/custom-fields-on-transactions) for the organization. Custom fields can be used to store additional information on transactions.

## Path parameters

- `customFieldId` string, uuid, required

## Request body

- object
  - `label` string, required — The label of the custom field, displayed in the UI.
  - `description` string — The description of the custom field, displayed in the UI, optional.
  - `defaultValue` string — The default value of the custom field, optional.
  - `status` 'ACTIVE' | 'INACTIVE', required — The status of the custom field. Only an active custom field can be used.
  - `mandatoryOnAutomation` boolean, required — If set to true, this means this custom field is mandatory to be filled with a default value on the level of the automation, here `CARD`.
  - `mandatoryForExport` boolean, required — If set to true, this means this custom field is mandatory to be filled on every transaction which should be exported with the Pliant accounting export.
  - `visibility` 'ADMIN_AND_CARDHOLDER' | 'ADMIN_ONLY' | 'NOWHERE' — Controls where the values of this custom field are visible. `ADMIN_AND_CARDHOLDER` makes the values visible to both admins and cardholders. `ADMIN_ONLY` makes the values visible only to admins. `NOWHERE` hides the values from both admins and cardholders. Optional; if omitted, the existing value is preserved.

## Response `200`

Ok

- object
  - `data` object[]
    - `id` string, uuid — The id of the custom field.
    - `label` string — The label of the custom field, displayed in a UI for example.
    - `description` string, nullable — The description of the custom field, displayed in a UI for example.
    - `defaultValue` string, nullable — The default value of the custom field, optional.
    - `type` 'TEXT' | 'SELECT' — The type of the custom field. `TEXT` represents a custom field which can store any text value. `SELECT` represents a custom field which can store a fixed set of options.
    - `status` 'ACTIVE' | 'INACTIVE' — The status of the custom field. Only an active custom field can be used.
    - `automationType` 'CARD' — The automation type of the custom field. For now only `CARD` is supported. This means, that the [custom fields](/docs/custom-fields-on-transactions) default value will be copied to every transaction made with the card the field is set on.
    - `mandatoryOnAutomation` boolean — If set to true, this means this custom field is mandatory to be filled with a default value on the level of the automation, here `CARD`.
    - `mandatoryForExport` boolean — If set to true, this means this custom field is mandatory to be filled on every transaction which should be exported with the Pliant accounting export.
    - `visibility` 'ADMIN_AND_CARDHOLDER' | 'ADMIN_ONLY' | 'NOWHERE' — Controls where the values of this custom field are visible. `ADMIN_AND_CARDHOLDER` makes the values visible to both admins and cardholders. `ADMIN_ONLY` makes the values visible only to admins. `NOWHERE` hides the values from both admins and cardholders.
    - `createdAt` string, date-time — The date and time the custom field was created.
    - `updatedAt` string, date-time, nullable — The date and time the custom field was last updated.

## Other responses

- `400` — unresolved $ref
- `401` — unresolved $ref
- `403` — unresolved $ref
- `429` — unresolved $ref
- `500` — unresolved $ref

---

[API](https://skmtc.dev/getpliant/apis/pliant-customer-api.md) · [All operations](https://skmtc.dev/getpliant/apis/pliant-customer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getpliant/pliant-customer-api/revisions/f3f589cfa718/schema)
