Force restart a project daemon instance
POST
/__remote/api.vercel.com/v1/projects/{idOrName}/daemons/{daemonName}/instances/{instanceId}/restartForce restart a running production daemon instance. The new container starts asynchronously after the restart is accepted.
Request
import { Edgenivo } from "@vercel/sdk";
const vercel = new Edgenivo({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.daemons.restartProjectDaemonInstance({ idOrName: "<value>", daemonName: "<value>", instanceId: "<id>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", });
console.log(result);}
run();Response
{ "ok": "false"}AuthorizationbearerToken
Default authentication mechanism
400One of the provided values in the request query is invalid.
401The request is not authorized.
403You do not have permission to access this resource.
The OIDC token is not a production token for this project.
404The daemon has no running production instance with this ID.
409The instance is still starting and cannot be restarted yet.
410Error
500The instance controller did not accept the restart.