Skip to content

n8n_evaluations: add run/cancel actions when n8n releases the trigger/cancel Public API #936

Description

@czlonkowski

n8n merged trigger/cancel endpoints for evaluation test runs (n8n-io/n8n#33979, merged 2026-07-14): POST /workflows/{id}/test-runs and POST /workflows/{id}/test-runs/{runId}/cancel, with new API-key scopes testRun:create / testRun:cancel. They are not yet in any released n8n version (absent from 2.30.x and the 2.31.0 pre-release).

When they ship in a stable release, extend n8n_evaluations (added in #935) with run and cancel actions:

  • run: POST test-runs, 201 → persisted run. Requires workflow:execute. Error mapping to add: 403 evaluations unlicensed, 402 per-instance "workflows with evaluations" quota exhausted (new workflows only — re-running an already-counted workflow is always allowed), 409 workflow has no evaluation trigger.
  • cancel: POST cancel, 202 → { id, status: 'cancelled' }.
  • Update tool description/doc (drop "triggering runs via API is not yet supported"), DESTRUCTIVE_TOOL_OPERATIONS (run/cancel are write ops — annotations recompute), and the changelog note in 2.65.0 that promised this follow-up.
  • The same n8n release gate applies: keys need re-creation to pick up the new scopes.

Conceived by Romuald Członkowski - www.aiadvisors.pl/en

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions