Create a Group for an Inventory
post
/api/v2/inventories/{id}/groups/
Make a POST request to this resource with the following group fields to create a new group associated with this inventory.
name: Name of this group. (string, required)-
description: Optional description of this group. (string, default="") -
variables: Group variables in JSON or YAML format. (json, default=``)
Remove Inventory Groups:
Make a POST request to this resource with id and disassociate fields to
delete the associated group.
{
"id": 123,
"disassociate": true
}
Request
Supported Media Types
- application/json
Path Parameters
Root Schema : Group
Type:
Show Source
object-
created:
string
Title:
CreatedRead Only:true -
description:
string
Title:
Description -
id:
integer
Title:
IDRead Only:true -
inventory(required):
integer
Title:
Inventory -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true -
variables:
string
Title:
VariablesGroup variables in JSON or YAML format.
Response
Supported Media Types
- application/json
201 Response
Root Schema : Group
Type:
Show Source
object-
created:
string
Title:
CreatedRead Only:true -
description:
string
Title:
Description -
id:
integer
Title:
IDRead Only:true -
inventory(required):
integer
Title:
Inventory -
modified:
string
Title:
ModifiedRead Only:true -
name(required):
string
Title:
NameMinimum Length:1Maximum Length:512 - related: string
-
summary_fields:
string
Title:
Summary fieldsRead Only:true -
type:
string
Title:
TypeRead Only:true -
url:
string
Title:
UrlRead Only:true -
variables:
string
Title:
VariablesGroup variables in JSON or YAML format.