ReferenceSDKClient
Schedules
SDK reference for schedules — Create and manage cron schedules that can trigger graph executions.
Create and manage cron schedules that can trigger graph executions.
getSchedule
Get stable schedule identity and preferred snapshot
GET
Usage:
const result = await swirls.client.schedules.getSchedule({
projectId: '...',
id: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
id | string | Yes |
Output:
| Field | Type | Description |
|---|---|---|
schedule | object | |
snapshot | object |
listSchedules
List stable schedules with preferred snapshot
GET
Usage:
const result = await swirls.client.schedules.listSchedules({
projectId: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
pagination | object | No |
Output:
| Field | Type | Description |
|---|---|---|
pagination | object | |
results | object[] | |
totalCount | number |