UpdateScheduleBody

Request body for updating a Schedule.

Definition

TypeScript
interface UpdateScheduleBody {
  name?: string | undefined;
  cronExpr?: string | undefined;
  timezone?: string | undefined;
  missedRunPolicy?: "skip" | "fire" | undefined;
  payload?: Record<string, unknown> | null | undefined;
  enabled?: boolean | undefined;
  runtimeUserId?: string | null | undefined;
}

Fields

FieldTypeNotes
namestring | undefinedoptional — New display name.
cronExprstring | undefinedoptional — New cron expression (5 or 6 fields, e.g. 0 9 * * MON-FRI).
timezonestring | undefinedoptional — New IANA timezone (e.g. Europe/Stockholm). Affects when the schedule fires.
missedRunPolicy"skip" | "fire" | undefinedoptional
payloadRecord<string, unknown> | null | undefinedoptional — Pass null to clear, omit to leave unchanged, or an object to replace.
enabledboolean | undefinedoptional — Toggle whether the schedule fires.
runtimeUserIdstring | null | undefinedoptional — Override the workspace default service user as the actor recorded on schedule.fired events. Null clears the override. Workspace-admin-only to set.