Skip to content

`PATCH /v1/orgs/{org}/groups/{group_id}`.

PATCH
/v1/orgs/{org}/groups/{group_id}
curl --request PATCH \
--url https://api.updawg.net/v1/orgs/example/groups/example \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "label_selector": "example", "name": "example" }'
org
required
string

Organization slug.

group_id
required
string

The grp_… id.

Media typeapplication/json

Every field optional. An absent field is left alone; null clears description or label_selector.

object
description
string | null
label_selector
object | null
name
string | null
Examplegenerated
{
"description": "example",
"label_selector": "example",
"name": "example"
}

Changed. A rename lists the policies that named the old name.

Media typeapplication/json
object
group
required
object
created_at
required
string format: date-time
description
string | null
id
required

grp_….

string
label_selector
object | null
name
required
string
resolved_hosts
required

Every host it resolves to, static or by label, each counted once. Decommissioned hosts are in no group.

integer format: int64
static_hosts
required

Hosts put in the group by hand. Decommissioned hosts are not counted.

integer format: int64
policies_naming_old_name
required

Live policies whose selector named the group’s old name, and so now match nothing of it. A policy selects a group by name. Empty unless the name changed.

Array<string>
Examplegenerated
{
"group": {
"created_at": "2026-04-15T12:00:00Z",
"description": "example",
"id": "example",
"label_selector": "example",
"name": "example",
"resolved_hosts": 1,
"static_hosts": 1
},
"policies_naming_old_name": [
"example"
]
}

An empty name, or a selector that is empty or has an empty key.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No session.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not permitted for this role.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

No such group here.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

A group with that name exists.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}

Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.

Media typeapplication/json
object
detail
string | null
status
required
integer format: int32
title
required
string
type
required
string
Examplegenerated
{
"detail": "example",
"status": 1,
"title": "example",
"type": "example"
}