curl --request PATCH \
--url https://api.intelligence.io.solutions/api/r2r/v3/documents/{id}/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": "<string>"
}
'{
"results": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"collection_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"owner_id": "123e4567-e89b-12d3-a456-426614174000",
"document_type": "pdf",
"metadata": {
"title": "Sample Document"
},
"version": "1.0",
"title": "Sample Document",
"size_in_bytes": 123456,
"ingestion_status": "pending",
"extraction_status": "pending",
"created_at": "2021-01-01T00:00:00Z",
"updated_at": "2021-01-01T00:00:00Z",
"ingestion_attempt_number": 0,
"summary": "A summary of the document",
"summary_embedding": [
0.1,
0.2,
0.3
],
"total_tokens": 1000,
"chunks": [
{
"key": "value"
}
]
}
}Appends metadata to a document. This endpoint allows adding new metadata fields or updating existing ones.
curl --request PATCH \
--url https://api.intelligence.io.solutions/api/r2r/v3/documents/{id}/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": "<string>"
}
'{
"results": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"collection_ids": [
"123e4567-e89b-12d3-a456-426614174000"
],
"owner_id": "123e4567-e89b-12d3-a456-426614174000",
"document_type": "pdf",
"metadata": {
"title": "Sample Document"
},
"version": "1.0",
"title": "Sample Document",
"size_in_bytes": 123456,
"ingestion_status": "pending",
"extraction_status": "pending",
"created_at": "2021-01-01T00:00:00Z",
"updated_at": "2021-01-01T00:00:00Z",
"ingestion_attempt_number": 0,
"summary": "A summary of the document",
"summary_embedding": [
0.1,
0.2,
0.3
],
"total_tokens": 1000,
"chunks": [
{
"key": "value"
}
]
}
}The access token received from the authorization server in the OAuth 2.0 flow.
Document ID (UUID)
JSON object with metadata fields to update
200
Show child attributes
"123e4567-e89b-12d3-a456-426614174000"
"123e4567-e89b-12d3-a456-426614174000"
"pdf"
"1.0"
"Sample Document"
123456
"pending"
"pending"
"2021-01-01T00:00:00Z"
"2021-01-01T00:00:00Z"
0
"A summary of the document"
1000
Was this page helpful?