---
title: "Update customer fields values"
method: PUT
path: "/api/customers/{customer_id}/custom-fields"
tags: ["Customers"]
---

# Update customer fields values

`PUT /api/customers/{customer_id}/custom-fields`

Update a customer's custom fields values.

## Path parameters

- `customer_id` integer, required

## Request body

- CustomerCustomFieldValue[]
  - `id` integer, required — ID of the custom field for which to set a value.
  - `value` string, required — The value of the custom field for the particular customer.

## Response `200`

List of customer's updated custom fields values.

- CustomerCustomFieldWithValue[]
  - `field` CustomerCustomField, required
    - `id` integer, required — ID of the custom field.
    - `external_id` string, required — ID of the custom field in a foreign system (ex: Zendesk).
    - `object_type` 'Ticket' | 'Customer', required
    - `label` string, required — The name of the custom field.
    - `description` string, required — The description of the custom field.
    - `priority` integer, required — Order in which custom fields are displayed.
    - `required` boolean, required — Whether this custom field is required.
    - `managed_type` 'customer_type', required
    - `definition` union, required — The settings for this custom field, dependent on the data type.
      - TextDataTypeDefinition
        - `data_type` 'text', required
        - `input_settings` union, required — The input settings for this custom field, dependent on the input type.
          - TextInputSettings
            - `input_type` 'input', required
            - `placeholder` string — A hint to show within the input field when no data is entered.
          - DropdownInputSettingsSettings
            - `input_type` 'dropdown', required
            - `choices` string[], required — The available choices to show in the dropdown.
            - `default` string — The default value for this dropdown.
      - NumberDataTypeDefinition
        - `data_type` 'number', required
        - `input_settings` NumberInputSettings, required
          - `input_type` 'input_number', required
          - `placeholder` string — A hint to show within the input field when no data is entered.
          - `min` union — Minimum allowed number as value.
            - number
            - string
          - `max` union — Maximum allowed number as value.
            - number
            - string
      - BooleanDataTypeDefinition
        - `data_type` 'boolean', required
        - `input_settings` BooleanDropdownInputSettings, required
          - `input_type` 'dropdown', required
          - `choices` boolean[] — The boolean choices to show as a dropdown.
          - `default` boolean — The default value.
    - `created_datetime` string, date-time, required — When the custom field was created.
    - `updated_datetime` string, date-time, required — When the custom field was last updated.
    - `deactivated_datetime` string, date-time, required — When the custom field was deactivated.
  - `value` unknown, required

---

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