`PUT /v1/orgs/{org}/groups/{group_id}/hosts`.
PUT
/v1/orgs/{org}/groups/{group_id}/hosts
const url = 'https://api.updawg.net/v1/orgs/example/groups/example/hosts';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"hosts":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.updawg.net/v1/orgs/example/groups/example/hosts \ --header 'Content-Type: application/json' \ --data '{ "hosts": [ "example" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Organization slug.
group_id
required
string
The grp_… id.
Request Bodyrequired
Section titled “Request Bodyrequired”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" ]}Responses
Section titled “Responses”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"}