Create a Group for a Host
post
                    /api/v2/hosts/{id}/groups/
Make a POST request to this resource with the following group fields to create a new group associated with this host.
- name: Name of this group. (string, required)
- description: Optional description of this group. (string, default=- "")
- inventory: (id, required)
- variables: Group variables in JSON or YAML format. (json, default=``)
Add Groups for a Host:
Make a POST request to this resource with only an id field to associate an
existing group with this host.
Remove Groups from this Host:
Make a POST request to this resource with id and disassociate fields to
remove the group from this host
 without deleting the group.
Request
Supported Media Types
                - application/json
Path Parameters
                
                
                
                
                
                
                Root Schema : schema
    
      
        
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Example:
    
    
{
    "id":1
}