---
title: "Update custom field definition"
method: PUT
path: "/cohorts/{cohortId}/custom-fields/{fieldId}"
tags: ["Custom Fields"]
---

# Update custom field definition

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

## Request

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

Update a custom field's label or type

## Path parameters

- `cohortId` string, uuid, required
- `fieldId` string, uuid, required

## Request body

- object
  - `field_label` string
  - `field_type` 'text' | 'number' | 'date' | 'boolean'

## Response `200`

Custom field updated successfully

## Other responses

- `401`: Unauthorized
- `404`: Cohort or field 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)
