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

# Bulk update custom field values

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

## Request

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

Update custom field values for multiple participants at once

## Path parameters

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

## Request body

- object
  - `updates` object[], required
    - `participantId` string, uuid, required
    - `value` string, nullable

## Response `200`

Values updated successfully

- object
  - `success` boolean
  - `data` object
    - `updatedCount` integer

## Other responses

- `400`: Invalid updates array
- `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)
