v1
latestOpenAPI 3.0.22026-07-17373198641.7 KBproject
v1
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
post/api/v1/project/projects/{id}/update_document_fields/
Path parameters
idstring required
A unique integer value identifying this project.
Request body
Example request
{
"all": true,
"document_ids": [
0,
0
],
"fields_data": "{}",
"no_document_ids": [
6,
6
],
"on_existing_value": "on_existing_value"
}Response
Example response
{
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"inactive_document_names": [
"inactive_document_names",
"inactive_document_names"
],
"inactive_document_ids": [
0,
0
]
}