Skip to main content
POST
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
/
collections
/
{collection_id}
/
update
Updates records in a collection by ID.
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
database
string
required
collection_id
string
required

Body

application/json
ids
string[]
required
documents
(string | null)[] | null
embeddings
metadatas
(null | object)[] | null
uris
(string | null)[] | null

Response

Collection updated successfully

The response is of type object.