shadwshadw/Docs
GuidesAPIGetting Started
Dashboard
shadw REST APIOverviewErrors
  • POSTCreate a deployment
  • GETGet a build
  • POSTPromote a deployment
  • POSTRedeploy a project
  • DELDelete a deployment
APIs & SDKs/shadw REST API/Promote a deployment

Promote a deployment

POSThttps://api.shadw.cloud/v1/deployments/{id}/promote

Promote (or roll back to) a deployment — instantly re-points the production alias to it. No rebuild.

Authentication

AuthorizationbearerToken

A platform API key (hive_…, created under Settings → API Keys) or a short-lived JWT minted with POST /v1/token. An API key scopes the request to the team it was created under.

Path parameters

idstringRequired

The deployment id to promote.

ts
const response = await fetch('https://api.shadw.cloud/v1/deployments/{id}/promote', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY', // hive_… (Settings → API Keys)
  },
});

const data = await response.json();
console.log(data);
Response
json
{
  "id": "dpl-46f4fb3397",
  "project": "acme-app",
  "production": true,
  "alias": "acme-app.localhost"
}