Sync Index
client.Beta.Indexes.Sync(ctx, indexID, body) (*BetaIndexSyncResponse, error)
POST/api/v1/indexes/{index_id}/sync
Trigger a sync and export for an existing index, re-parsing changed files and exporting updated chunks.
Sync Index
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/llamacloud-prod-go"
"github.com/stainless-sdks/llamacloud-prod-go/option"
)
func main() {
client := llamacloudprod.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Beta.Indexes.Sync(
context.TODO(),
"index_id",
llamacloudprod.BetaIndexSyncParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{}Returns Examples
{}