## Cancel Index Sync

`JsonElement Indexes.CancelSync(IndexCancelSyncParamsparameters, CancellationTokencancellationToken = default)`

**post** `/api/v1/indexes/{index_id}/sync/cancel`

Cancel the running sync for an index. Returns 409 if no sync is running.

### Parameters

- `IndexCancelSyncParams parameters`

  - `required string indexID`

  - `string? organizationID`

  - `string? projectID`

### Example

```csharp
IndexCancelSyncParams parameters = new() { IndexID = "index_id" };

var response = await client.Indexes.CancelSync(parameters);

Console.WriteLine(response);
```

#### Response

```json
{}
```
