---
title: "Reorder custom fields"
method: PATCH
path: "/api/workspaces/{workspaceId}/custom-fields/reorder"
tags: ["Custom Fields"]
---

# Reorder custom fields

`PATCH /api/workspaces/{workspaceId}/custom-fields/reorder`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/workspaces/{workspaceId}/custom-fields/reorder`
- Auth: API key in cookie `hiveship_access`

## Request body

- object
  - `orderedIds` string[], required

## Response `200`

Reordered custom fields

- object
  - `success` boolean, required
  - `data` object[], required
    - `id` string, cuid, required
    - `name` string, required
    - `type` 'TEXT' | 'NUMBER' | 'DATE' | 'SELECT' | 'MULTI_SELECT' | 'URL' | 'BOOLEAN', required
    - `options` object[], nullable, required
      - `value` string, required
      - `label` string, required
      - `color` string, nullable
    - `description` string, nullable, required
    - `required` boolean, required
    - `sortOrder` number, required
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required

## Other responses

- `400`: Validation error

---

[API](https://skmtc.dev/hiveship/apis/hiveship-api.md) · [All operations](https://skmtc.dev/hiveship/apis/hiveship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hiveship/apis/hiveship-api/revisions/73d3e26544e4?raw)
