Update firewall group configuration

Modify settings for a specific firewall group, such as adding or removing rules. After the update, an ID is returned that can be used to verify the changes.

Path Parameters

id string required Example

UUID for id

Headers

Accept Example
Content-Type Example

Body

required
application/json
name string required
description any required
rules array required

Responses

200
success boolean
timestamp string
requestId string
data object
PUT https://cloud.hostup.se/api/firewall-groups/{id}
For AI assistants
cURL
curl -X PUT "https://cloud.hostup.se/api/firewall-groups/33a92604-2d3a-49c1-b400-78472ff5c1fc" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": null,
    "rules": [
      {
        "id": "string",
        "type": "string",
        "action": "string",
        "enable": true,
        "pos": 0,
        "proto": "string",
        "dport": "string",
        "sport": "string",
        "source": "string",
        "dest": "string",
        "comment": "string",
        "iface": "string",
        "macro": "string",
        "created_at": "string",
        "updated_at": "string"
      }
    ]
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string",
    "id": "string"
  }
}
Request Body
{
  "name": "string",
  "description": null,
  "rules": [
    {
      "id": "string",
      "type": "string",
      "action": "string",
      "enable": true,
      "pos": 0,
      "proto": "string",
      "dport": "string",
      "sport": "string",
      "source": "string",
      "dest": "string",
      "comment": "string",
      "iface": "string",
      "macro": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ]
}