workflows

Cancel Execution

post/api/workflows/{team_key}/executions/{execution_key}/cancel

Request

  • Base URL
    https://api.superit.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

execution_keystring required
team_keystring required

Response

Successful Response

keystring required
slugstring nullable required
actionKeystring required
actionNamestring required
status'pending' | 'waiting_for_approval' | 'approved' | 'not_approved' | 'running' | 'error' | 'complete' | 'cancelled' required
mode'normal' | 'test'
scriptstring required
runtime'powershell' | 'python' | 'playwright' required
requesterUserKeystring required
requesterNamestring nullable required
targetUserKeystring nullable required
targetDeviceKeystring nullable
targetDeviceHostnamestring nullable
targetDeviceAgentKeystring nullable
ticketKeystring nullable
triggerSource'manual' | 'sparky_chat' | 'schedule' | 'ticket_recommendation'

What initiated an execution.

Set server-side per callsite, never from a request body — provenance on an audit record must not be forgeable. Rows created before this field existed are NULL ("unknown"); there is no data from which to recover their origin.

chatKeystring nullable
recommendedActionKeystring nullable
approvedByUserKeystring nullable required
approvedByNamestring nullable required
approvedAtstring date-time nullable required
approvalNotestring nullable
inputsobject required
approvalInputsobject nullable required
stdoutstring required
stderrstring required
resultJsonobject nullable required
errorMessagestring nullable required
diagnosticLogstring required
startedAtstring date-time nullable required
completedAtstring date-time nullable required
createdAtstring date-time required
totalDurationMsinteger nullable
scriptDurationMsinteger nullable
scriptTimeoutSecondsinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.