Create a group

Creates a new application group.

POST https://errors.betterstack.com/api/v1/application-groups

Headers

Authorization
required string
Content-Type
required string

Body parameters

name
required string
platform
string
201

Response body

{
  "data": {
    "id": "5678",
    "type": "application_group",
    "attributes": {
      "name": "new-production-group",
      "created_at": "2025-01-15T10:25:00.000Z",
      "updated_at": "2025-01-15T10:25:00.000Z",
      "sort_index": null,
      "team_name": "example-team"
    }
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
400

Response body

{
  "errors": "Sorry, you are missing some required attributes",
  "required_attributes": [
    "name"
  ]
}
422

Response body

{
  "errors": "Validation errors",
  "invalid_attributes": {
    "name": [
      "can't be blank"
    ]
  }
}

Example cURL

Example
curl --request POST \
  --url https://errors.betterstack.com/api/v1/application-groups \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "new-production-group"
  }'