Update a placement group

Update a placement group's name or metadata. Any other field in the body is ignored.

PATCH https://{availability_zone}.betterstackcloud.com/v1/placement-groups/{id}
id string required

The ID of the placement group to update.

Authorization string required

Bearer $TOKEN

Content-Type string

application/json

name string

The group's name.

metadata object

Your own tags, as string keys and values. An update replaces all tags, so an empty object removes every tag. Accepts any keys.

200 OK
{
  "id": "example",
  "name": "Example placement group",
  "placement_type": "spread",
  "server_ids": [
    "123456789"
  ],
  "created_at": "2026-07-01T12:00:00.000Z",
  "updated_at": "2026-07-01T12:00:00.000Z",
  "team_id": "t123",
  "metadata": {
    "example": "value"
  }
}

Returns the updated placement group.

id string

The placement group's ID, a UUID.

name string

The group's name.

placement_type string

How we place the group's servers. When there isn't room, the server is still created, on another host.
Valid values:
spread: We put each server on a different host when we can.
compact: We put the servers on as few hosts as we can.

server_ids array of strings

The IDs of the servers in the group. A server joins the group when you create it with placement_group_id.

created_at datetime

When the group was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the group was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

team_id string

The ID of the team that owns the group. betterstack team list shows it.

metadata object

Your own tags, as string keys and values.