---
title: "Assign server to firewall"
method: POST
path: "/firewalls/{firewall_id}/assignments"
tags: ["Firewalls"]
---

# Assign server to firewall

`POST /firewalls/{firewall_id}/assignments`

Assigns a server to a firewall by its ID.

## Path parameters

- `firewall_id` string, required

## Request body

- object
  - `data` object, required
    - `type` 'firewall_assignments', required
    - `attributes` object
      - `server_id` string, required

## Response `201`

Created

---

[API](https://skmtc.net/latitude/apis/latitude-sh-api.md) · [All operations](https://skmtc.net/latitude/apis/latitude-sh-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/latitude/latitude-sh-api/versions/7302d79e39bb/schema)
