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
Path Parameters
Body ()
Root Schema : Group
Type: object
Show Source
Back to Top

Response

Supported Media Types

201 Response

Body ()
Root Schema : Group
Type: object
Show Source
Back to Top