CancelDeploymentResponseBody

August 5, 2026 · View on GitHub

Returns the updated deployment object with readyState set to CANCELED. The build has been stopped and this action is irreversible.

Example Usage

import { CancelDeploymentResponseBody } from "@vercel/sdk/models/canceldeploymentresponsebody.js";

let value: CancelDeploymentResponseBody = {
  build: {
    env: [
      "<value 1>",
    ],
  },
  env: [
    "<value 1>",
    "<value 2>",
    "<value 3>",
  ],
  inspectorUrl: "https://sniveling-rawhide.org/",
  isInConcurrentBuildsQueue: true,
  isInSystemBuildsQueue: true,
  projectSettings: {},
  alias: [],
  aliasAssigned: true,
  bootedAt: 2648.29,
  buildingAt: 4945.71,
  buildSkipped: false,
  creator: {
    uid: "96SnxkFiMyVKsK3pnoHfx3Hz",
    username: "john-doe",
  },
  public: false,
  status: "QUEUED",
  userAliases: [
    "sub1.example.com",
    "sub2.example.com",
  ],
  previewCommentsEnabled: false,
  id: "dpl_89qyp1cskzkLrVicDaZoDbjyHuDJ",
  target: null,
  readyState: "READY",
  aliasError: null,
  createdAt: 1540257589405,
  name: "my-project",
  type: "LAMBDAS",
  deletedAt: 1540257589405,
  meta: {
    "key": "<value>",
    "key1": "<value>",
  },
  regions: [
    "sfo1",
  ],
  softDeletedByRetention: true,
  source: "cli",
  undeletedAt: 1540257589405,
  url: "my-instant-deployment-3ij3cxz9qr.now.sh",
  userConfiguredDeploymentId: "abc123",
  version: 2,
  projectId: "<id>",
  plan: "pro",
  createdIn: "<value>",
  ownerId: "<id>",
  routes: [
    {
      src: "<value>",
      continue: true,
      middleware: 3028.54,
    },
  ],
};

Fields

FieldTypeRequiredDescriptionExample
aliasAssignedAtmodels.AliasAssignedAt:heavy_minus_sign:N/A
alwaysRefuseToBuildboolean:heavy_minus_sign:N/A
buildmodels.Build:heavy_check_mark:N/A
buildArtifactUrlsstring[]:heavy_minus_sign:N/A
buildsmodels.Builds[]:heavy_minus_sign:N/A
envstring[]:heavy_check_mark:N/A
resourceConfigmodels.CancelDeploymentResourceConfig:heavy_minus_sign:N/A
inspectorUrlstring:heavy_check_mark:N/A
isInConcurrentBuildsQueueboolean:heavy_check_mark:N/A
isInSystemBuildsQueueboolean:heavy_check_mark:N/A
projectSettingsmodels.CancelDeploymentProjectSettings:heavy_check_mark:N/A
integrationsmodels.Integrations:heavy_minus_sign:N/A
imagesmodels.Images:heavy_minus_sign:N/A
aliasstring[]:heavy_minus_sign:A list of all the aliases (default aliases, staging aliases and production aliases) that were assigned upon deployment creation[]
aliasAssignedboolean:heavy_check_mark:A boolean that will be true when the aliases from the alias property were assigned successfullytrue
bootedAtnumber:heavy_check_mark:N/A
buildingAtnumber:heavy_check_mark:N/A
buildContainerFinishedAtnumber:heavy_minus_sign:Since April 2025 it necessary for On-Demand Concurrency Minutes calculation
buildSkippedboolean:heavy_check_mark:N/A
creatormodels.CancelDeploymentCreator:heavy_check_mark:Information about the deployment creator
initReadyAtnumber:heavy_minus_sign:N/A
isFirstBranchDeploymentboolean:heavy_minus_sign:N/A
lambdasmodels.Lambdas[]:heavy_minus_sign:N/A
publicboolean:heavy_check_mark:A boolean representing if the deployment is public or not. By default this is falsefalse
readynumber:heavy_minus_sign:N/A
statusmodels.CancelDeploymentStatus:heavy_check_mark:N/A
teammodels.CancelDeploymentTeam:heavy_minus_sign:The team that owns the deployment if any
userAliasesstring[]:heavy_minus_sign:An array of domains that were provided by the user when creating the Deployment.[
"sub1.example.com",
"sub2.example.com"
]
previewCommentsEnabledboolean:heavy_minus_sign:Whether or not preview comments are enabled for the deploymentfalse
ttyBuildLogsboolean:heavy_minus_sign:N/A
customEnvironmentmodels.CustomEnvironment:heavy_minus_sign:N/A
oomReportmodels.OomReport:heavy_minus_sign:N/A
readyStateReasonstring:heavy_minus_sign:N/A
idstring:heavy_check_mark:A string holding the unique ID of the deploymentdpl_89qyp1cskzkLrVicDaZoDbjyHuDJ
targetmodels.CancelDeploymentTarget:heavy_minus_sign:If defined, either staging if a staging alias in the format <project>.<team>.now.sh was assigned upon creation, or production if the aliases from alias were assigned. null value indicates the "preview" deployment.null
readyStatemodels.ReadyState:heavy_check_mark:The state of the deployment depending on the process of deploying, or if it is ready or in an error stateREADY
aliasErrormodels.AliasError:heavy_minus_sign:An object that will contain a code and a message when the aliasing fails, otherwise the value will be nullnull
aliasWarningmodels.AliasWarning:heavy_minus_sign:N/A
errorCodestring:heavy_minus_sign:N/A
errorMessagestring:heavy_minus_sign:N/A
createdAtnumber:heavy_check_mark:A number containing the date when the deployment was created in milliseconds1540257589405
namestring:heavy_check_mark:The name of the project associated with the deployment at the time that the deployment was createdmy-project
typemodels.CancelDeploymentType:heavy_check_mark:N/A
aliasFinalstring:heavy_minus_sign:N/A
autoAssignCustomDomainsboolean:heavy_minus_sign:applies to custom domains only, defaults to true
automaticAliasesstring[]:heavy_minus_sign:N/A
buildErrorAtnumber:heavy_minus_sign:N/A
checksStatemodels.ChecksState:heavy_minus_sign:N/A
checksConclusionmodels.ChecksConclusion:heavy_minus_sign:N/A
deletedAtnumber:heavy_minus_sign:A number containing the date when the deployment was deleted at milliseconds1540257589405
defaultRoutestring:heavy_minus_sign:Computed field that is only available for deployments with a microfrontend configuration.
canceledAtnumber:heavy_minus_sign:N/A
errorLinkstring:heavy_minus_sign:N/A
errorStepstring:heavy_minus_sign:N/A
passiveRegionsstring[]:heavy_minus_sign:Since November 2023 this field defines a set of regions that we will deploy the lambda to passively Lambdas will be deployed to these regions but only invoked if all of the primary regions are marked as out of service
gitSourcemodels.CancelDeploymentGitSource:heavy_minus_sign:N/A
manualProvisioningmodels.ManualProvisioning:heavy_minus_sign:Present when deployment was created with manual provisioning enabled, either explicitly or via the experimental BYOC git flow. The deployment stays in INITIALIZING until /continue is called.
metaRecord<string, string>:heavy_check_mark:N/A
originCacheRegionstring:heavy_minus_sign:N/A
nodeVersionmodels.CancelDeploymentNodeVersion:heavy_minus_sign:If set it overrides the projectSettings.nodeVersion for this deployment.
projectmodels.CancelDeploymentProject:heavy_minus_sign:The public project information associated with the deployment.
prebuiltboolean:heavy_minus_sign:N/A
readySubstatemodels.ReadySubstate:heavy_minus_sign:Substate of deployment when readyState is 'READY' Tracks whether or not deployment has seen production traffic: - STAGED: never seen production traffic - ROLLING: in the process of having production traffic gradually transitioned. - PROMOTED: has seen production traffic
regionsstring[]:heavy_check_mark:The regions the deployment exists in[
"sfo1"
]
softDeletedByRetentionboolean:heavy_minus_sign:flag to indicate if the deployment was deleted by retention policytrue
sourcemodels.CancelDeploymentSource:heavy_minus_sign:Where was the deployment created from. Best-effort guess for metrics only — not authoritative; do not gate behavior on it.cli
undeletedAtnumber:heavy_minus_sign:A number containing the date when the deployment was undeleted at milliseconds1540257589405
urlstring:heavy_check_mark:A string with the unique URL of the deploymentmy-instant-deployment-3ij3cxz9qr.now.sh
userConfiguredDeploymentIdstring:heavy_minus_sign:Since January 2025 User-configured deployment ID for skew protection with pre-built deployments. This is set when users configure a custom deploymentId in their next.config.js file. This allows Next.js to use skew protection even when deployments are pre-built outside of Vercel's build system.abc123
versionnumber:heavy_check_mark:The platform version that was used to create the deployment.2
oidcTokenClaimsmodels.OidcTokenClaims:heavy_minus_sign:N/A
projectIdstring:heavy_check_mark:N/A
planmodels.CancelDeploymentPlan:heavy_check_mark:N/A
connectBuildsEnabledboolean:heavy_minus_sign:N/A
connectConfigurationIdstring:heavy_minus_sign:N/A
createdInstring:heavy_check_mark:N/A
cronsmodels.Crons[]:heavy_minus_sign:N/A
functionsRecord<string, models.Functions>:heavy_minus_sign:N/A
monorepoManagerstring:heavy_minus_sign:N/A
ownerIdstring:heavy_check_mark:N/A
passiveConnectConfigurationIdstring:heavy_minus_sign:Since November 2023 this field defines a Secure Compute network that will only be used to deploy passive lambdas to (as in passiveRegions)
routesmodels.CancelDeploymentRoutes[]:heavy_check_mark:N/A
servicesmodels.Services[]:heavy_minus_sign:Services detected during build from vercel.json experimentalServices or auto-detected from project structure. Used to inject service URLs as environment variables at runtime.
gitRepomodels.GitRepo:heavy_minus_sign:N/A
flagsmodels.Flags:heavy_minus_sign:N/A
microfrontendsmodels.CancelDeploymentMicrofrontends:heavy_minus_sign:N/A
platformmodels.Platform:heavy_minus_sign:Metadata about the source platform that triggered the deployment. Allows us to map a deployment back to a platform (e.g. the chat that created it)
configmodels.CancelDeploymentConfig:heavy_minus_sign:Since February 2025 the configuration must include snapshot data at the time of deployment creation to capture properties for the /deployments/:id/config endpoint utilized for displaying Deployment Configuration on the frontend This is optional because older deployments may not have this data captured
checksmodels.CancelDeploymentChecks:heavy_minus_sign:N/A
seatBlockmodels.SeatBlock:heavy_minus_sign:NSNB Blocked metadata
attributionmodels.CancelDeploymentAttribution:heavy_minus_sign:Attribution metadata for the deployment, linking commit author to git and Vercel users. Only populated when the enable-deployment-attribution flag is enabled.