---
title: "Create or edit list items"
method: POST
path: "/crm/v1/entities/{entity}/lists/{field}"
tags: ["fields"]
---

# Create or edit list items

`POST /crm/v1/entities/{entity}/lists/{field}`

## Request

- Base URL: `https://{domain}.uspacy.ua`
- URL: `https://{domain}.uspacy.ua/crm/v1/entities/{entity}/lists/{field}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/uspacy/apis/crm-service-2/docs/crm/v1/entities/:entity/lists/:field/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates or updates list values for a field. Send the full list of items to replace existing values.

## Request body

- SourceList[]
  - `title` string
  - `value` string
  - `color` string
  - `sort` integer
  - `selected` boolean

## Response `200`

OK

## Other responses

- `401`: Access token is missing or invalid
- `422`: Validation error response

---

[API](https://skmtc.dev/uspacy/apis/crm-service-2.md) - [All operations](https://skmtc.dev/uspacy/apis/crm-service-2/llms.txt) - [OpenAPI document](https://skmtc.dev/uspacy/apis/crm-service-2/revisions/f80578d43845?raw)
