Skip to content

Sync Index

beta.indexes.sync(strindex_id, IndexSyncParams**kwargs) -> object
POST/api/v1/indexes/{index_id}/sync

Trigger a sync and export for an existing index, re-parsing changed files and exporting updated chunks.

ParametersExpand Collapse
index_id: str
organization_id: Optional[str]
project_id: Optional[str]
ReturnsExpand Collapse
object

Sync Index

import os
from llama_cloud import LlamaCloud

client = LlamaCloud(
    api_key=os.environ.get("LLAMA_CLOUD_API_KEY"),  # This is the default and can be omitted
)
response = client.beta.indexes.sync(
    index_id="index_id",
)
print(response)
{}
Returns Examples
{}