VPS: Post-install scripts
Update post-install script
Update a specific post-install script.
Use this endpoint to modify existing automation scripts.
put/api/vps/v1/post-install-scripts/{postInstallScriptId}
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/vps/v1/post-install-scripts/{postInstallScriptId}
- Auth: HTTP bearer
Path parameters
postInstallScriptIdinteger required
Example:9568314
Post-install script ID
Request body
Example request
{
"name": "My Script",
"content": "#!/bin/bash\n\necho 'Hello, World!'"
}Response
Success response
Example response
{
"id": 325,
"name": "My Setup Script",
"content": "#!/bin/bash\\napt-get update\\napt-get install -y nginx",
"created_at": "2025-02-27T11:54:22Z",
"updated_at": "2025-03-19T11:54:22Z"
}Changes
No recorded changes to this operation across all 130 revisions of this API.