---
title: "POST /api/v1/project/projects/{id}/update_document_fields/"
method: POST
path: "/api/v1/project/projects/{id}/update_document_fields/"
tags: ["project", "v1"]
---

# POST /api/v1/project/projects/{id}/update_document_fields/

`POST /api/v1/project/projects/{id}/update_document_fields/`

Bulk update project documents field, similar to /fields/ API in document app

    Params:
        document_ids: list[int]
        all: any value - update all documents if any value
        no_document_ids: list[int] - exclude those docs from action (if "all" is set)
        fields_data: - dict {field_code: [values]}
        on_existing_value: "replace_all" | "add_new" (for multi-choice fields)
    Returns:
        task_id

## Path parameters

- `id` string, required

## Request body

- UpdateProjectDocumentsFieldsRequest
  - `all` boolean
  - `document_ids` integer[]
  - `no_document_ids` integer[]
  - `fields_data` object, required
  - `on_existing_value` string

## Response `200`

- UpdateProjectDocumentsFieldsResponse
  - `task_id` string, uuid, required
  - `inactive_document_ids` integer[], required
  - `inactive_document_names` string[], required

## Other responses

- `404`

## Changes

- **2026-07-17** `3429f921b4cb` — 2 info
  - added the required property `inactive_document_ids` to the response with the `200` status
  - added the required property `inactive_document_names` to the response with the `200` status
- **2021-09-22** `63116f2e9e3e` — 3 info
  - added the new optional request property `on_existing_value` (media type: application/json)
  - added the new optional request property `on_existing_value` (media type: application/x-www-form-urlencoded)
  - added the new optional request property `on_existing_value` (media type: multipart/form-data)
- **2021-05-24** `8167164be9cc` — 1 info
  - endpoint added
- **2020-12-11** `0957c4a7ae3d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/lexpredict/apis/contraxsuite-api/changes/api/v1/project/projects/:id/update_document_fields/post.md)

---

[API](https://skmtc.dev/lexpredict/apis/contraxsuite-api.md) · [All operations](https://skmtc.dev/lexpredict/apis/contraxsuite-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lexpredict/contraxsuite-api/revisions/3429f921b4cb/schema)
