curl --request PATCH \
--url https://api.bigdata.com/contents/v1/documents/{content_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"tags": [
"019e3a99-6952-7dd4-adf5-b0b341959e11"
]
}
'{
"id": "E0618D0E9D3A960C1731A620EDE56B5C",
"file_name": "Weekly summary report.eml",
"user_id": "user_id_001",
"org_id": "org_id_001",
"status": "pending",
"created_at": "2026-02-03T08:43:02.729356Z",
"updated_at": "2026-02-03T08:43:02.729359Z",
"published_at": "2026-02-03T08:43:02.729359Z",
"rp_collection_id": "2CBDC7DA8AE42A8A078DECC3C9FCADFB",
"rp_source_id": "E5A77C",
"raw_size": 18974,
"pages": 50,
"request_origin": "email",
"content_type": "message/rfc822",
"shared_with_orgs": [
"org_id_001"
],
"connector_id": "019a9612-bfad-758c-884e-37dd8c6ad2cb",
"error_code": null,
"delete_started_ts": null,
"file_metadata": null,
"tags": [
{
"id": "019a48b4-e574-71d9-a8d9-6a5a86386847",
"name": "from:user@email.com"
}
],
"usage": {
"private_data_tokens": 171079
},
"enrichments_requested": [
"translation"
],
"enrichments_applied": []
}{
"statusCode": 400,
"message": "Invalid tag ids.",
"errorCode": "INVALID_TAGS_ERROR",
"requestId": "6b7438ed-ecf7-4f1d-acd3-8c662cf96149"
}Documents
Update document metadata
Partially update a document’s metadata. Send only the fields you want to change.
tags: Array of tag IDs (UUIDs) to assign to the document. This replaces the document’s current tag set, so you can add or remove tags by including the full list you want applied. Each ID must refer to an existing tag (use POST/contents/v1/tagsto create one, or GET/contents/v1/tagsto list IDs). If any ID is invalid, the API returns400with error codeINVALID_TAGS_ERROR.share_with_org: Whentrue, the document is available to all members of your organization. Whenfalse, only you can access it.
PATCH
/
contents
/
v1
/
documents
/
{content_id}
curl --request PATCH \
--url https://api.bigdata.com/contents/v1/documents/{content_id} \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"tags": [
"019e3a99-6952-7dd4-adf5-b0b341959e11"
]
}
'{
"id": "E0618D0E9D3A960C1731A620EDE56B5C",
"file_name": "Weekly summary report.eml",
"user_id": "user_id_001",
"org_id": "org_id_001",
"status": "pending",
"created_at": "2026-02-03T08:43:02.729356Z",
"updated_at": "2026-02-03T08:43:02.729359Z",
"published_at": "2026-02-03T08:43:02.729359Z",
"rp_collection_id": "2CBDC7DA8AE42A8A078DECC3C9FCADFB",
"rp_source_id": "E5A77C",
"raw_size": 18974,
"pages": 50,
"request_origin": "email",
"content_type": "message/rfc822",
"shared_with_orgs": [
"org_id_001"
],
"connector_id": "019a9612-bfad-758c-884e-37dd8c6ad2cb",
"error_code": null,
"delete_started_ts": null,
"file_metadata": null,
"tags": [
{
"id": "019a48b4-e574-71d9-a8d9-6a5a86386847",
"name": "from:user@email.com"
}
],
"usage": {
"private_data_tokens": 171079
},
"enrichments_requested": [
"translation"
],
"enrichments_applied": []
}{
"statusCode": 400,
"message": "Invalid tag ids.",
"errorCode": "INVALID_TAGS_ERROR",
"requestId": "6b7438ed-ecf7-4f1d-acd3-8c662cf96149"
}Authorizations
Path Parameters
Body
application/json
Fields to update on a document. Include only the properties you want to change.
Response
Updated document metadata.
Metadata for a single document. Returned by List documents and Get document. Use the id (content_id) with Get annotated document or Get original document to retrieve the file content.
Enrichments requested for this document (from direct upload or the connector that ingested it). See Enrichments.
Available options:
reporting_entities, translation Example:
["translation"]
Was this page helpful?