Skip to main content
POST
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections
/
{collection_id}
/
update
cURL
curl --request POST \
  --url https://api.trychroma.com/api/v2/tenants/{tenant}/databases/{database}/collections/{collection_id}/update \
  --header 'Content-Type: application/json' \
  --header 'x-chroma-token: <api-key>' \
  --data '
{
  "ids": [
    "<string>"
  ],
  "documents": [
    "<string>"
  ],
  "embeddings": "<unknown>",
  "metadatas": [
    "<unknown>"
  ],
  "uris": [
    "<string>"
  ]
}
'
{}

Authorizations

x-chroma-token
string
header
required

Path Parameters

tenant
string
required

Tenant UUID

database
string
required

Database name

collection_id
string
required

Collection UUID

Body

application/json

Payload for updating existing records in a collection.

Records are added in batches. All arrays must have the same length, with each index representing a single record. For example, ids[0], embeddings[0], documents[0], etc. all belong to the same record.

ids
string[]
required
documents
(string | null)[] | null
embeddings

Updated embeddings for each record. Can contain the raw f32 arrays or base64 encoded strings.

metadatas
(null | object)[] | null
uris
(string | null)[] | null

Response

Collection updated successfully

The response is of type object.