Restart an app, so it loads new code or new settings. A stopped app is started.
Request
Add parameter in header API-key
Example:API-key: ********************
or
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params application/jsonRequired
{
"type": "nodejs",
"app_root": "apps/shop"
}
Request Code Samples
curl --location 'https://mijn.host/api/v2/hosting/12345/apps/restart' \
--header 'Accept: application/json' \
--header 'User-Agent: my-application/1.0.0' \
--header 'API-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"type": "nodejs",
"app_root": "apps/shop"
}'
Responses
application/json
{
"status": 200,
"status_description": "string",
"data": {
"app": {
"type": "nodejs",
"app_root": "apps/shop",
"domain": "example.nl",
"uri": "shop",
"version": "20",
"status": "started",
"startup_file": "app.js",
"entry_point": "application",
"mode": "production",
"environment_variables": [
"API_KEY",
"NODE_ENV"
]
}
}
}
Modified at 2026-11-20 15:12:54