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.
/__remote/api.vercel.com/v1/projects/{idOrName}/daemons/{daemonName}/instances/{instanceId}/restart
const response = await fetch('/__remote/api.vercel.com/v1/projects/idOrName/daemons/daemonName/instances/instanceId/restart?teamId=string&slug=string', { method: 'POST', headers: { 'Authorization': 'Bearer YOUR_ACCESS_TOKEN', 'Content-Type': 'application/json', },});
const data = await response.json();console.log(data);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.