Groups / Create

Create a group. Do not send guid; the server assigns one.

Endpoint

Method POST
Url https://downdar.com/api/v1/groups/create

Request

Fields

name req String, max 255 characters.
color_hex opt Hex color like #336699. Defaults to #999999 when omitted or empty.
{ "name": "Production" }

Response

Top level

ok Always true on success.
group Group object. Fields below apply to group.
capacity Group quota for the account.
rate_limit Rate limit state for the tier this endpoint consumes. Present on every successful response.

group

guid Group id.
name Group name.
color_hex Hex color like #336699, or null when unset.
monitor_count Monitors in this group.
heartbeat_count Heartbeats in this group.

capacity

limit Maximum groups allowed on your plan.
used Groups currently in use.
remaining Groups you can still create.

rate_limit

tier Rate tier this endpoint counts against (1-5).
cost Units consumed by this request against the tier window.
timeframe Rolling limit window: second, minute, hour, or day.
limit Maximum units allowed in the timeframe for this tier on your plan.
used Units already used in the current window.
remaining Units left before this tier returns HTTP 429.
{ "ok": true, "group": { "guid": "550e8400-e29b-41d4-a716-446655440000", "name": "Production", "color_hex": "#999999", "monitor_count": 0, "heartbeat_count": 0 }, "capacity": { "limit": 10, "used": 2, "remaining": 8 }, "rate_limit": { "tier": 1, "cost": 1, "timeframe": "minute", "limit": 60, "used": 12, "remaining": 48 } }