Create a User Group
post
                    /api/AAA/UserGroups
Creates a new user group.
The minimum required properties in the request body are:
                The minimum required properties in the request body are:
- UserGroupName
- RoleID
- Users
- Properties
- Preferences
Request
There are no request parameters for this operation.
Supported Media Types
                            - application/json
Root Schema : schema
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectDetails of the user group to create or update.
    
    
    
    
        Show Source
        - 
                
                    
                    Preferences: array
                    
                    
                
                
                    Preferences
                
                
                The user group preferences.
- 
                
                    
                    Properties: array
                    
                    
                
                
                    Properties
                
                
                The user group properties.
- 
                
                    
                    RoleID: integer
                    
                    
                     
                    
                
                
                The role ID.Example:1
- 
                
                    
                    UserGroupName: string
                    
                    
                     
                    
                
                
                The user group name.
 To avoid confusion with numeric IDs, the name value cannot be integers only or integers prefixed with the + or - symbols only. It must contain letters or other characters. For example, 1234, +1234, and -1234 are not valid, but US1234, US+1234 and US_1234 are.Example:Administrators
- 
                
                    
                    Users: array
                    
                    
                
                
                    Users
                
                
                The IDs of the users in the group.
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    Description: string
                    
                    
                     
                    
                
                
                The description of the preference.Example:Default pagination setting for grid views (default 1000)
- 
                
                    
                    Override: integer
                    
                    
                     
                    
                
                
                Whether the preference is unlocked (0) to allow users to override the group preference or locked (1) to prevent users from overriding it.Example:1
- 
                
                    
                    PreferenceID: integer
                    
                    
                     
                    
                
                
                The preference ID.Example:2
- 
                
                    
                    PreferenceName: string
                    
                    
                     
                    
                
                
                The preference name.Example:PageSize
- 
                
                    
                    PreferenceValue: integer
                    
                    
                     
                    
                
                
                The preference value.Example:1000
- 
                
                    
                    Required: boolean
                    
                    
                     
                    
                
                
                Whether the field is required (true) or not (false).Example:false
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    Description: string
                    
                    
                     
                    
                
                
                The property description.Example:Restricts device navigation and device-related data viewing to only devices within the specified Device Group and any sub groups
- 
                
                    
                    PropertyID: integer
                    
                    
                     
                    
                
                
                The property ID.Example:1
- 
                
                    
                    PropertyName: string
                    
                    
                     
                    
                
                
                The property name.Example:RestrictiveDeviceGroupID
- 
                
                    
                    PropertyValue: integer
                    
                    
                     
                    
                
                
                The property value.Example:1
Response
Supported Media Types
                - application/json
200 Response
Successful operation
                            
                            
                                Root Schema : schema
    
    	
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    Match All
    
        
    
        
    
    Show Source
    - 
                
                object 
                
                
             SuccessfulAddOperation
                
            The response body for a successful add operation.
- 
                
                object 
                
                
             type
                
            
Nested Schema : SuccessfulAddOperation
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectThe response body for a successful add operation.
    
    
    
    
        Show Source
        - 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                The response message.Example:Added record
- 
                
                    
                    success: boolean
                    
                    
                     
                    
                
                
                Whether the operation was a success (true) or a failure (false).Example:true
Nested Schema : type
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    data: array
                    
                    
                
                
                    data
                
                
                
- 
                
                    
                    total: integer
                    
                    
                     
                    
                
                
                The total number of results regardless of paging.Example:1
Nested Schema : AAAUserGroupsRead
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectUser group details.
    
    
    
    
        Show Source
        - 
                
                    
                    Preferences: array
                    
                    
                
                
                    Preferences
                
                
                The user group preferences.
- 
                
                    
                    Properties: array
                    
                    
                
                
                    Properties
                
                
                The user group properties.
- 
                
                    
                    RoleID: integer
                    
                    
                     
                    
                
                
                The role ID.Example:1
- 
                
                    
                    RoleName: string
                    
                    
                     
                    
                
                
                The role name.Example:Administrator
- 
                
                    
                    UserGroupID: integer
                    
                    
                     
                    
                
                
                The user group ID.Example:1
- 
                
                    
                    UserGroupName: string
                    
                    
                     
                    
                
                
                The user group name.Example:Administrators
- 
                
                    
                    Users: array
                    
                    
                
                
                    Users
                
                
                The users in the group.
Nested Schema : Preferences
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayThe user group preferences.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            A preference.
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectA preference.
    
    
    
    
        Show Source
        - 
                
                    
                    Description: string
                    
                    
                     
                    
                
                
                The description of the preference.Example:Default pagination setting for grid views (default 1000)
- 
                
                    
                    Override: integer
                    
                    
                     
                    
                
                
                Whether the preference is unlocked (0) to allow users to override the group preference or locked (1) to prevent users from overriding it.Example:0
- 
                
                    
                    PreferenceID: integer
                    
                    
                     
                    
                
                
                The preference ID.Example:2
- 
                
                    
                    PreferenceName: string
                    
                    
                     
                    
                
                
                The preference name.Example:PageSize
- 
                
                    
                    PreferenceValue: integer
                    
                    
                     
                    
                
                
                The preference value.Example:1000
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    Description: string
                    
                    
                     
                    
                
                
                The description of the property.Example:Restricts device navigation and device-related data viewing to only devices within the specified Device Group and any sub groups
- 
                
                    
                    PropertyID: integer
                    
                    
                     
                    
                
                
                The property ID.Example:1
- 
                
                    
                    PropertyName: string
                    
                    
                     
                    
                
                
                The property name.Example:RestrictiveDeviceGroupID
- 
                
                    
                    PropertyValue: integer
                    
                    
                     
                    
                
                
                The property value.Example:1
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    UserID: integer
                    
                    
                     
                    
                
                
                The user ID.Example:1065
- 
                
                    
                    UserName: string
                    
                    
                     
                    
                
                
                The user name.Example:Operator
Default Response
Failed operation
                            
                            
                                Root Schema : schema
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
                
                    
                    errors: array
                    
                    
                
                
                    errors
                
                
                The list of errors reported. Validation errors will be keyed by record field.
- 
                
                    
                    message: string
                    
                    
                     
                    
                
                
                The response message.Example:Exception thrown
- 
                
                    
                    success: boolean
                    
                    
                     
                    
                
                
                Whether the operation was a success (true) or a failure (false).Example:false
Nested Schema : errors
    
    	
    	Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayThe list of errors reported. Validation errors will be keyed by record field.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                object  items
            
            An error.
Nested Schema : items
    
    	Type: 
    	
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectAn error.