Endpoints
- access-groups
- artifacts
- checks
- projects
- deployments
- domains
- dns
- logDrains
- edge-config
- user
- marketplace
- integrations
- authentication
- logs
- projectMembers
- environment
- rolling-release
- GETGet rolling release configuration
- DELDelete rolling release configuration
- PATCHUpdate the rolling release settings for the project
- GETGet the active rolling release information for a project
- POSTUpdate the active rolling release to the next stage for a project
- POSTComplete the rolling release for the project
- GET
- security
- teams
- webhooks
- aliases
- certs
rolling-release
Complete the rolling release for the project
Force-complete a Rolling Release. The canary deployment will begin serving 100% of the traffic.
POST
/
v1
/
projects
/
{idOrName}
/
rolling-release
/
complete
Copy
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.rollingRelease.completeRollingRelease({
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();
Copy
{
"rollingRelease": {
"state": "ACTIVE",
"currentDeployment": {
"id": "dpl_abc123",
"name": "my-shop@main",
"url": "my-shop.vercel.app",
"target": "production",
"source": "git",
"createdAt": 1716206500000,
"readyState": "READY",
"readyStateAt": 1716206800000
},
"canaryDeployment": {
"id": "dpl_def456",
"name": "my-shop@9c7e2f4",
"url": "9c7e2f4-my-shop.vercel.app",
"target": "production",
"source": "git",
"createdAt": 1716210100000,
"readyState": "READY",
"readyStateAt": 1716210400000
},
"queuedDeploymentId": "dpl_ghi789",
"stages": [
{
"index": 0,
"isFinalStage": false,
"targetPercentage": 5,
"requireApproval": true,
"duration": null
},
{
"index": 1,
"isFinalStage": false,
"targetPercentage": 25,
"requireApproval": true,
"duration": null
},
{
"index": 2,
"isFinalStage": false,
"targetPercentage": 60,
"requireApproval": true,
"duration": null
},
{
"index": 3,
"isFinalStage": true,
"targetPercentage": 100,
"requireApproval": false,
"duration": null
}
],
"activeStage": {
"index": 1,
"isFinalStage": false,
"targetPercentage": 25,
"requireApproval": true,
"duration": null
},
"nextStage": {
"index": 2,
"isFinalStage": false,
"targetPercentage": 60,
"requireApproval": true,
"duration": null
},
"startedAt": 1716210500000,
"updatedAt": 1716210600000
}
}
Authorizations
Default authentication mechanism
Path Parameters
Project ID or project name (URL-encoded)
Query Parameters
The Team identifier to perform the request on behalf of.
Example:
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
The Team slug to perform the request on behalf of.
Example:
"my-team-url-slug"
Body
application/json
Response
200
application/json
The response format for rolling release endpoints that return rolling release information
Copy
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.rollingRelease.completeRollingRelease({
idOrName: "<value>",
teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
slug: "my-team-url-slug",
});
console.log(result);
}
run();
Copy
{
"rollingRelease": {
"state": "ACTIVE",
"currentDeployment": {
"id": "dpl_abc123",
"name": "my-shop@main",
"url": "my-shop.vercel.app",
"target": "production",
"source": "git",
"createdAt": 1716206500000,
"readyState": "READY",
"readyStateAt": 1716206800000
},
"canaryDeployment": {
"id": "dpl_def456",
"name": "my-shop@9c7e2f4",
"url": "9c7e2f4-my-shop.vercel.app",
"target": "production",
"source": "git",
"createdAt": 1716210100000,
"readyState": "READY",
"readyStateAt": 1716210400000
},
"queuedDeploymentId": "dpl_ghi789",
"stages": [
{
"index": 0,
"isFinalStage": false,
"targetPercentage": 5,
"requireApproval": true,
"duration": null
},
{
"index": 1,
"isFinalStage": false,
"targetPercentage": 25,
"requireApproval": true,
"duration": null
},
{
"index": 2,
"isFinalStage": false,
"targetPercentage": 60,
"requireApproval": true,
"duration": null
},
{
"index": 3,
"isFinalStage": true,
"targetPercentage": 100,
"requireApproval": false,
"duration": null
}
],
"activeStage": {
"index": 1,
"isFinalStage": false,
"targetPercentage": 25,
"requireApproval": true,
"duration": null
},
"nextStage": {
"index": 2,
"isFinalStage": false,
"targetPercentage": 60,
"requireApproval": true,
"duration": null
},
"startedAt": 1716210500000,
"updatedAt": 1716210600000
}
}
Assistant
Responses are generated using AI and may contain mistakes.