Add groups to domain
Description
Adds one or more groups to a given domain.
HTTP method
POST
Request
 URL
URL
                                        http://{Admin API IP}:{port#}/api/v1/domains/{id}/groups Headers
Headers
                                        Example header format:
Authorization: Basic <authorization token returned from the login method>
                                            
Content-Type: application/json
                                            
| Parameter | Description/Comments | 
|---|---|
| ID | (string) Domain's ID. | 
 Request body
Request body
                                        | Parameter | Description/Comments | 
|---|---|
| Id | (string) Group's id. Can be retrieved via Get all groups. | 
| ViewOnly | (bool) Specify true to add the group with "view only" permissions. | 
 Request example
Request example
                                        {
  "Groups": [
    {
      "Id": 1,
      "ViewOnly": false
    }
  ]
}Response
 Response example
Response example
                                        {
    "Errors": []
} Response code
Response code
                                        200 OK
                                        


 
                                    



