Skip to content

Function: updateImportSchedule() ​

ts
function updateImportSchedule(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  collectionId?: string;
  created?: Date;
  id?: string;
  importSourceId?: string;
  runInterval?: string & object | "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY";
  startTime?: Date;
  updated?: Date;
}>;

Defined in: src/assets/api/importSources.ts:322

Updates an existing scheduled import configuration. You can modify the start time, run interval, or callback URL.

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ callbackUrl?: string | null; importScheduleId: string; importSourceId: string; runInterval: string & object | "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY"; startTime: unknown; }-
parameters.callbackUrl?string | nullOptional webhook URL to call after each scheduled import execution. The URL will receive a POST request with execution status.
parameters.importScheduleId?stringThe ID of the import schedule to update
parameters.importSourceId?stringThe ID of the import source
parameters.runInterval?string & object | "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY"The frequency of the scheduled import. ONCE: runs only at startTime. DAILY: runs every day at the specified time. WEEKLY: runs every 7 days. MONTHLY: runs on the same day of each month.
parameters.startTime?unknownThe date and time when the first import should execute, in ISO 8601 format (e.g., '2024-01-15T02:00:00Z'). Must be in the future.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; collectionId?: string; created?: Date; id?: string; importSourceId?: string; runInterval?: string & object | "ONCE" | "DAILY" | "WEEKLY" | "MONTHLY"; startTime?: Date; updated?: Date; }>