Interface FunctionScheduleCreate

interface FunctionScheduleCreate {
    cronExpression: string;
    data?: Record<string, unknown>;
    description?: string;
    functionId: number;
    name: string;
    nonce: string;
}

Properties

cronExpression: string

Cron expression that describes when the function is called.

data?: Record<string, unknown>

Input data passed to the function on each call. Do not put secrets here; use the function's secrets instead.

description?: string

At most 500 characters.

functionId: number
name: string

Between 1 and 140 characters.

nonce: string

Nonce from client.sessions.create. The schedule binds the session and keeps it alive for the lifetime of the schedule.