Skip to content
Framework Docs

Sync Index

JsonValue beta().indexes().sync(IndexSyncParamsparams = IndexSyncParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
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
IndexSyncParams params
Optional<String> indexId
Optional<String> organizationId
Optional<String> projectId
ReturnsExpand Collapse
class IndexSyncResponse:

Sync Index

package com.llamacloud_prod.api.example;

import com.llamacloud_prod.api.client.LlamaCloudClient;
import com.llamacloud_prod.api.client.okhttp.LlamaCloudOkHttpClient;
import com.llamacloud_prod.api.models.beta.indexes.IndexSyncParams;
import com.llamacloud_prod.api.models.beta.indexes.IndexSyncResponse;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        LlamaCloudClient client = LlamaCloudOkHttpClient.fromEnv();

        IndexSyncResponse response = client.beta().indexes().sync("index_id");
    }
}
{}
Returns Examples
{}