Update a warehouse source group

Updates an existing Warehouse source group. Only provided parameters will be changed.

PATCH https://warehouse.betterstack.com/api/v1/source-groups/{id}

URL parameters

id
required string

Headers

Authorization
required string
Content-Type
required string

Body parameters

name
string
200

Response body

{
  "data": {
    "id": "1234",
    "type": "warehouse_source_group",
    "attributes": {
      "name": "analytics_updated",
      "created_at": "2025-11-13T10:00:00Z",
      "updated_at": "2025-11-25T20:44:50Z",
      "sort_index": null,
      "team_name": "example-team"
    }
  }
}
401

Response body

{
  "errors": "Invalid authentication"
}
404

Response body

{
  "errors": "Source group with the provided ID was not found"
}
422

Response body

{
  "errors": "Validation errors",
  "invalid_values": {
    "name": [
      "already taken",
      "name must only contain letters, numbers, and underscores"
    ]
  }
}

Example cURL

Example
curl --request PATCH \
  --url https://warehouse.betterstack.com/api/v1/source-groups/1234 \
  --header "Authorization: Bearer $TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{
    "name": "analytics_updated"
  }'