You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: document_management_integration/document_management_metadata_details.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -344,6 +344,31 @@ All metadata fields follow a consistent structure in Document Upload and Documen
344
344
}
345
345
```
346
346
347
+
### Constructing the Fields Array for API Requests
348
+
349
+
When initializing or updating documents using the Document Uploads API (POST or PATCH requests), you will pass your metadata values inside the `fields` array. This array acts as a map, linking a specific project field's ID to the value you want to apply.
350
+
351
+
Because Procore supports diverse field types — ranging from open text to strict dropdown lists — the format of the value you provide depends entirely on the field's data type. For example, text fields accept literal strings, whereas List of Values (LOV) fields require you to pass specific Procore value IDs.
352
+
353
+
Use the following structuring rules and reference table to correctly construct your `fields` array payloads.
354
+
355
+
**Structuring Rules**
356
+
357
+
-**Always wrap values in an array**, even for single-value fields.
-**Select-type fields** (`lov_entry` / `lov_entries`): You cannot pass literal text. You must use the value IDs retrieved from the [List Project Metadata Values](https://developers.procore.com/reference/rest/document-management-fields?version=2.0#list-document-management-project-field-values) endpoint.
360
+
-**For `lov_entries` multi-select**: Pass multiple value IDs inside the single `values` array, e.g., `"values": ["ID_1", "ID_2"]`.
361
+
362
+
**Quick Reference: How to Structure Field Values**
363
+
364
+
| Field Type | From: List Fields | From: List Field Values | Fields Array Entry Example |
To identify which fields are configured for a specific project, query the [List Project Fields](https://developers.procore.com/reference/rest/project-fields?version=latest#list-project-fields) endpoint.
@@ -1008,5 +1033,3 @@ Document Management can process 3D model files (BIM/Building Information Models)
0 commit comments