| sidebar_position | 12 |
|---|
Adds one or more groups to a given domain.
http://{Admin API IP}:{port#}/api/v1/domains/{id}/groups
| Parameter | Description/Comments |
|---|---|
| ID | (string) Domain's ID. Can be retrieved via Get all domains. |
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) Group id. Can be retrieved via Get all groups. |
| ViewOnly | (bool) Specify true to add the group with "view only" permissions. |
Request example
{
"Groups": [
{
"Id": 1,
"ViewOnly": false
}
]
}Response example
{
"Errors": []
}Response code
200 OK