---
title: "Bulk Update Custom Fields"
method: PATCH
path: "/api/v4/{workspace-slug}/custom-fields/bulk"
---

# Bulk Update Custom Fields

`PATCH /api/v4/{workspace-slug}/custom-fields/bulk`

## Request

- Base URL: `https://api.app.shortcut.com`
- URL: `https://api.app.shortcut.com/api/v4/{workspace-slug}/custom-fields/bulk`
- Auth: HTTP bearer

Bulk Update Custom Fields updates multiple Custom Fields, and returns a paginated list of the updated Custom Fields.

## Path parameters

- `workspace-slug` string, required

## Query parameters

- `limit` integer
- `cursor` string
- `order_by` 'name' | 'updated_at'
- `order_dir` 'desc' | 'asc'
- `filter` 'all'
- `fields` string

## Request body

- Body1605143
  - `custom_fields` BulkUpdateCustomFieldsParams1[], required: Payloads for each Custom Field to update.
    - `id` string, uuid, required: The unique ID of the Custom Field to update.
    - `after_id` string, uuid: Move this Custom Field to after the field with this ID.
    - `before_id` string, uuid: Move this Custom Field to before the field with this ID.
    - `description` string: A description of the Custom Field.
    - `enabled` boolean: Whether the Custom Field is enabled.
    - `icon_set_identifier` string: An identifier for the icon set for this Custom Field.
    - `name` string: The name of the Custom Field.
    - `values` UpdateCustomFieldEnumValueParams[]: The ordered list of enum values. Existing values not included will be deleted.
      - `color_key` 'blue' | 'purple' | 'midnight-blue' | 'orange' | 'yellow-green' | 'brass' | 'gray' | 'fuchsia' | 'yellow' | 'pink' | 'sky-blue' | 'green' | 'red' | 'black' | 'slate' | 'turquoise', nullable: The color key for this enum value. Pass null to clear.
      - `enabled` boolean: Whether this enum value is enabled.
      - `id` string, uuid: The ID of an existing enum value to update. Omit to create a new value.
      - `value` string: The string value for this enum value.
    - `values_add` UpdateCustomFieldEnumValueParams[]: Enum values to add to the Custom Field. Existing values are unchanged.
      - `color_key` 'blue' | 'purple' | 'midnight-blue' | 'orange' | 'yellow-green' | 'brass' | 'gray' | 'fuchsia' | 'yellow' | 'pink' | 'sky-blue' | 'green' | 'red' | 'black' | 'slate' | 'turquoise', nullable: The color key for this enum value. Pass null to clear.
      - `enabled` boolean: Whether this enum value is enabled.
      - `id` string, uuid: The ID of an existing enum value to update. Omit to create a new value.
      - `value` string: The string value for this enum value.
    - `values_remove` string[]: IDs of enum values to remove from the Custom Field.

## Response `200`

Resource

- CustomFieldEntityListWrapper
  - `$schema` string, required: The URI for the json-schema for this response.
  - `current_items` integer, required: The number of items on the current page.
  - `current_page` integer, required: The number of the current page.
  - `entities` CustomField[], required: The entities for this page.
    - `canonical_name` string, nullable: The canonical name of a Shortcut-defined Custom Field.
    - `created_at` string, date-time: The time/date the Custom Field was created.
    - `description` string, nullable: A description of the Custom Field.
    - `enabled` boolean: Whether the Custom Field is enabled for the Workspace.
    - `entity_type` 'custom-field': The type of this entity.
    - `field_type` string: The type of the Custom Field (e.g. "enum").
    - `fixed_position` boolean: Whether this Custom Field has a fixed position.
    - `icon_set_identifier` string, nullable: An identifier for the icon set used for this Custom Field.
    - `id` string, uuid: The unique public ID for the Custom Field.
    - `name` string: The name of the Custom Field.
    - `position` integer, nullable: The display position of the Custom Field.
    - `story_types` string[], nullable: The story types this Custom Field applies to, if restricted.
    - `updated_at` string, date-time: The time/date the Custom Field was last updated.
    - `uri` string: A resolvable URI for the entity that will return the full representation.
    - `values` CustomFieldValue[], nullable: The ordered list of enum values for this Custom Field.
      - `color_key` 'blue' | 'purple' | 'midnight-blue' | 'orange' | 'yellow-green' | 'brass' | 'gray' | 'fuchsia' | 'yellow' | 'pink' | 'sky-blue' | 'green' | 'red' | 'black' | 'slate' | 'turquoise', nullable: The color key associated with this enum value.
      - `enabled` boolean: Whether this enum value is enabled.
      - `entity_type` 'custom-field-value': The type of this entity.
      - `field` CustomFieldSlim: The Custom Field for this value.
        - `entity_type` 'custom-field:slim', required: The type of this entity.
        - `id` string, uuid, required: The unique public ID for the Custom Field.
        - `name` string, required: The name of the Custom Field.
        - `uri` string, required: A resolvable URI for the entity that will return the full representation.
      - `id` string, uuid: The unique public ID for the enum value.
      - `position` integer: The position of this enum value in the ordered list.
      - `value` string: The string value for this enum value.
  - `total_items` integer, required: The number of total items across all pages.
  - `total_pages` integer, required: The total number of pages.
  - `next_page_url` string: A URL to get the next page. Will be absent on the last page.

## Other responses

- `400`: Schema mismatch
- `404`: Resource does not exist
- `422`: Unprocessable

---

[API](https://skmtc.dev/shortcut-com/apis/shortcut-api.md) - [All operations](https://skmtc.dev/shortcut-com/apis/shortcut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shortcut-com/apis/shortcut-api/revisions/bf2d8439832f?raw)
