v4

latestOpenAPI 3.1.02026-08-03427198448.4 KB

Create Scheduled Task

Create a new scheduled task.

Args: request: Task creation request user_org_data: Current user and organization data

Returns: Dictionary with the created task ID

post/scheduled-tasks

Request body

task_typestring required

Type of task (send_invoice, send_expense, etc.)

resource_typestring required

Type of resource (invoice, expense, etc.)

resource_idstring required

ID of the resource to schedule

scheduled_atstring date-time required

When to execute the task (ISO format)

task_configobject nullable

Optional task configuration

max_attemptsinteger

Maximum retry attempts

Response

Successful Response

object required