---
title: "Sync firewall to all assigned VMs"
method: POST
path: "/api/vps/v1/firewall/{firewallId}/sync"
tags: ["VPS: Firewall"]
---

# Sync firewall to all assigned VMs

`POST /api/vps/v1/firewall/{firewallId}/sync`

Sync a firewall's rules to every virtual machine it's assigned to.

Firewall can lose sync with a virtual machine if the firewall has new rules added, removed or updated.

Use this endpoint to apply updated firewall rules to all VPS instances assigned to the firewall.

## Path parameters

- `firewallId` integer, required

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

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

## Changes

- **2026-09-04** `4e69b24afdf1` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/vps/v1/firewall/:firewallId/sync/post.md)

---

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