Hosting: NodeJS
Restart Node.js application
Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application.
Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
post/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Response
Success empty response
Example response
{
"message": "Request accepted"
}