---
title: "Reorder custom fields"
method: PUT
path: "/cohorts/{cohortId}/custom-fields/reorder"
tags: ["Custom Fields"]
---

# Reorder custom fields

`PUT /cohorts/{cohortId}/custom-fields/reorder`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{cohortId}/custom-fields/reorder`
- Auth: HTTP bearer

Update the display order of custom field definitions

## Path parameters

- `cohortId` string, uuid, required

## Request body

- object
  - `fieldIds` string[], required: Ordered array of field IDs

## Response `200`

Fields reordered successfully

## Other responses

- `400`: Invalid fieldIds
- `401`: Unauthorized
- `404`: Cohort not found

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
