---
title: "Update post-install script"
method: PUT
path: "/api/vps/v1/post-install-scripts/{postInstallScriptId}"
tags: ["VPS: Post-install scripts"]
---

# Update post-install script

`PUT /api/vps/v1/post-install-scripts/{postInstallScriptId}`

Update a specific post-install script.

Use this endpoint to modify existing automation scripts.

## Path parameters

- `postInstallScriptId` integer, required

## Request body

- VPSV1PostInstallScriptStoreRequest
  - `name` string, required — Name of the script
  - `content` string, required — Content of the script

## Response `200`

Success response

- VPSV1PostInstallScriptPostInstallScriptResource
  - `id` integer — Post-install script ID
  - `name` string — Name of the script
  - `content` string — Content of the script
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/74abfea76e36/schema)
