## 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. ### Parameters - `indexID string` - `body BetaIndexSyncParams` - `OrganizationID param.Field[string]` - `ProjectID param.Field[string]` ### Returns - `type BetaIndexSyncResponse interface{…}` ### Example ```go package main import ( "context" "fmt" "github.com/run-llama/llama-parse-go" "github.com/run-llama/llama-parse-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) } ``` #### Response ```json {} ```