Reinstall VPS instance by ID
curl --request POST \
--url https://api.storiza.store/vps/{vmId}/reinstall \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"templateId": "<string>",
"hostname": "<string>",
"templateImageSlug": "<string>",
"inputs": {},
"sshKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vmPassword": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
templateId: '<string>',
hostname: '<string>',
templateImageSlug: '<string>',
inputs: {},
sshKeyId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
vmPassword: '<string>'
})
};
fetch('https://api.storiza.store/vps/{vmId}/reinstall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/{vmId}/reinstall"
payload = {
"templateId": "<string>",
"hostname": "<string>",
"templateImageSlug": "<string>",
"inputs": {},
"sshKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vmPassword": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "VPS reinstall process has been initiated",
"data": {}
}Server settings
Reinstall VPS instance by ID
Reinstalls the VPS operating system, optionally switching template, image version, template inputs and login credentials. This is the only way to change them: they are applied while the image is being built, so an existing server cannot adopt a new set without being rebuilt.
Credentials follow the same rule as ordering — a vmPassword, an sshKeyId, or both, and Windows requires a password and refuses keys. Fields you omit keep their current value; pass null to clear one. Everything on the disk is destroyed.
Required API key permission: vps:write
POST
/
vps
/
{vmId}
/
reinstall
Reinstall VPS instance by ID
curl --request POST \
--url https://api.storiza.store/vps/{vmId}/reinstall \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"templateId": "<string>",
"hostname": "<string>",
"templateImageSlug": "<string>",
"inputs": {},
"sshKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vmPassword": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
templateId: '<string>',
hostname: '<string>',
templateImageSlug: '<string>',
inputs: {},
sshKeyId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
vmPassword: '<string>'
})
};
fetch('https://api.storiza.store/vps/{vmId}/reinstall', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.storiza.store/vps/{vmId}/reinstall"
payload = {
"templateId": "<string>",
"hostname": "<string>",
"templateImageSlug": "<string>",
"inputs": {},
"sshKeyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"vmPassword": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "VPS reinstall process has been initiated",
"data": {}
}Authorizations
An API key from the Storiza dashboard (API & Integrations), sent as Authorization: Bearer stz_….
Path Parameters
Body
application/json
Required string length:
1 - 63Pattern:
^[a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?$Minimum string length:
1Show child attributes
Show child attributes
Required string length:
8 - 64Pattern:
^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9])Was this page helpful?