Create a task V1

Creates a new task using the v1 endpoint, please use createTask instead.

Usage

1
2
3
4
5
6
7
8
9
10
import Ingestion

let client = try IngestionClient(appID: "ALGOLIA_APPLICATION_ID", apiKey: "ALGOLIA_API_KEY", region: .us)

let response = try await client.createTaskV1(taskCreate: TaskCreateV1(
    sourceID: "search",
    destinationID: "destinationName",
    trigger: TaskCreateTrigger.onDemandTriggerInput(OnDemandTriggerInput(type: OnDemandTriggerType.onDemand)),
    action: ActionType.replace
))
Did you find this page helpful?