/scheduled-tasks/run-tasks

POST <baseUrl>/scheduled-tasks/run-tasks

POST Run scheduled tasks

Trigger execution of all scheduled tasks that are due to run based on their cron expressions. This endpoint is designed to be called by a system CRON job.

Responses

200 Tasks execution triggered successfully
application/json
Type: [object]
{
  "properties": {
    "results": {
      "description": "Execution results for each task",
      "items": {
        "properties": {
          "error": {
            "description": "Error message if execution failed",
            "type": "string"
          },
          "succeeded": {
            "description": "Whether the task execution succeeded",
            "type": "boolean"
          },
          "taskId": {
            "description": "ID of the executed task",
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "tasksExecuted": {
      "description": "Number of tasks executed",
      "type": "integer"
    }
  },
  "type": "object"
}
401 Unauthorized
403 Forbidden - Only administrators can run scheduled tasks
500 Internal server error

Security

  • apiKeyAuth [apiKey]
    API Key authentication. Use the X-API-KEY header (generated from the Vaktum portal) to authenticate directly to a workspace.
    In: header
    Name: X-API-KEY
  • bearerAuth [http]
    OAuth2 authentication. Use the Authorization header with a Bearer token. Also provide X-WORKSPACE-ID header for workspace context.
    Scheme: bearer
    Bearer Format: JWT