Skip to content

`PUT /v1/orgs/{org}/groups/{group_id}/hosts`.

PUT
/v1/orgs/{org}/groups/{group_id}/hosts
curl --request PUT \
--url https://api.updawg.net/v1/orgs/example/groups/example/hosts \
--header 'Content-Type: application/json' \
--data '{ "hosts": [ "example" ] }'
org
required
string

Organization slug.

group_id
required
string

The grp_… id.

Media typeapplication/json
object
hosts
required

Every static member, as hst_… ids. Replaces the set; label-selected members are unaffected.

Array<string>
Examplegenerated
{
"hosts": [
"example"
]
}

The static members are exactly these.

Media typeapplication/json
object
static_hosts
required
integer format: int64
Examplegenerated
{
"static_hosts": 1
}

An id that is not a host of this organization; nothing was changed.

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"
}

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"
}