---
title: "Set or clear one of your fields on selected records"
method: PUT
path: "/v1/workspace/collections/{collection_id}/fields/values"
---

# Set or clear one of your fields on selected records

`PUT /v1/workspace/collections/{collection_id}/fields/values`

## Request

- Base URL: `https://api.specstream.ai`
- URL: `https://api.specstream.ai/v1/workspace/collections/{collection_id}/fields/values`
- Auth: API key in header `Authorization`

## Path parameters

- `collection_id` string, required

## Request body

- YourFieldValue: Set one field on many records at once; an empty value clears it.
  - `expected_version` integer, required
  - `record_ids` string[], required
  - `key` string, required
  - `value` union
    - string
    - boolean

## Response `200`

Set or clear one of your fields on selected records

- object
  - `data` YourFields, required
    - `collection_id` string, required
    - `version` integer, required
    - `fields` YourField[], required
      - `key` string, required
      - `label` string, required
      - `type` 'choice' | 'check' | 'text', required
      - `options` string[], nullable
    - `values` object, required

## Other responses

- `default`: Error envelope

---

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