v12

latestOpenAPI 3.0.3raw.githubusercontent.com2026-06-1811583196.1 KB
Networking

Update security group

Update a security group's name, description, or rules. Passing rules replaces the entire rule set — to add or remove a single rule, GET the current rules first, modify the array, then PUT the result.

put/api/v1/security-groups/{id}

Path parameters

idstring uuid required

Security group ID (UUID).

Headers

X-Project-IDstring uuid required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Request body

namestring
descriptionstring

Example request

{
  "rules": [
    {
      "range": "80",
      "ip": "0.0.0.0"
    }
  ]
}

Response

Security group updated

successboolean

Example response

{
  "data": {
    "name": "web-server",
    "rules": [
      {
        "range": "80",
        "ip": "0.0.0.0"
      }
    ]
  }
}