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