Task Run
Cancel a Task Run
Cancel a Task Run. Best-effort cancellation cascades to the current phase's in-flight target Tasks; targets not yet claimed are not started. Cancelling an already-terminal Task Run returns its last known state.
Task Runs are site-scoped; siteId must be the Site that owns the Task Run. Org must have an Infrastructure Provider entity. User must have authorization role with PROVIDER_ADMIN suffix.
post/v2/org/{org}/nico/task/run/{id}/cancel
Request body
Response
Accepted. The cancellation request was accepted and the Task Run's last known state is returned.