Update a source group

Updates an existing source group. Send only the parameters you wish to change (e.g. name )

PATCH https://telemetry.betterstack.com/api/v1/source-groups/{source_group_id}

URL parameters

id
required string

Body parameters

name
string
sort_index
string
200

Response body

{
  "data": {
    "id": "95251342",
    "type": "source_group",
    "attributes": {
      "name": "Backend sources",
      "sort_index": null,
      "created_at": "2025-06-30T17:43:12.192Z",
      "updated_at": "2020-06-30T17:43:12.192Z",
      "team_name": "Test team"
    }
  }
}
404

Response body

{
  "errors": "Resource with provided ID was not found"
}

Example cURL

Example
curl --request PUT \
  --url https://telemetry.betterstack.com/api/v1/source-groups/123 \
  --header "Authorization: Bearer $TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "name": "My renamed source group"
  }'