---
title: "Reorder custom fields (v2)"
method: POST
path: "/v2/custom-fields/reorder"
tags: ["custom-fields"]
---

# Reorder custom fields (v2)

`POST /v2/custom-fields/reorder`

Batch ranking update (`{ updates: [{ customFieldId, ranking }] }`, max 100). Stale IDs are silently skipped. **Requires `Idempotency-Key`.** Returns the full re-ranked list: `{ data: { custom_fields: [...] } }`.

## Headers

- `Idempotency-Key` string, required

## Request body

- object
  - `updates` object[], required
    - `customFieldId` string, uuid, required
    - `ranking` integer, required

## Response `200`

Successful response

- object
  - `data` object, required
    - `custom_fields` object[], required
      - `id` string, uuid, required
      - `user_id` string
      - `name` string
      - `field_type` string
      - `categories` string[]
      - `ranking` integer, nullable
    - `pagination` object
      - `nextCursor` string, nullable
      - `count` integer

## Other responses

- `400` — Request body failed validation.
- `401` — Missing or invalid API key.
- `403` — Valid key, insufficient permission.
- `404` — Resource does not exist.
- `409` — Request body failed validation.
- `429` — Rate limit exceeded.
- `500` — Unexpected server error.

---

[API](https://skmtc.net/getdex/apis/dex-public-api.md) · [All operations](https://skmtc.net/getdex/apis/dex-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getdex/dex-public-api/versions/6f01cd52ac12/schema)
