Actions8
Cancel Deployment
AI-generatedSummary
Cancels an in-progress Vercel deployment by sending a PATCH request to the Vercel API's /v12/deployments/{idOrUrl}/cancel endpoint, and returns the API's response.
Inputs
- Deployment ID or URL (required) — The deployment ID or URL to cancel. It is URL-encoded and inserted into the request path.
Output shape
One output item per input item, with the JSON body returned by Vercel's cancel endpoint (typically the updated deployment object) in json.
The request uses the team ID from the credentials, or a
teamIdOverrideparameter if one is set, as theteamIdquery string. The source readsteamIdOverride, but it isn't declared in this operation's properties. If a request fails and Continue On Fail is enabled, the item contains{ error: message }instead. Otherwise the node throws an error.
Examples
Example 1: Cancel a stuck or unwanted build after a newer commit is pushed.
Operation: Cancel Deployment; Deployment ID or URL: {{ $json.deploymentId }} (e.g. dpl_abc123).
Example 2: Cancel a deployment found by an earlier List Deployments step that filtered on state BUILDING.
Operation: Cancel Deployment; Deployment ID or URL: {{ $json.uid }}.
