Create a placement group

Create a placement group. A new placement group is ready at once and starts empty.

POST https://{availability_zone}.betterstackcloud.com/v1/placement-groups
Authorization string required

Bearer $TOKEN

Content-Type string

application/json

name string required

The group's name.

placement_type string required

How we place the group's servers. When there isn't room, the server is still created, on another host. Can't be changed after the group is created.
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.

team_id string required

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

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.

201 Created
{
  "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 newly created 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.