Add groups to domain
Description
Adds one or more groups to a given domain.
HTTP method
POST
Request
URL
http://{Admin API IP}:{port#}/api/v1/domains/{id}/groups
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
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
{
"Groups": [
{
"Id": 1,
"ViewOnly": false
}
]
}
Response
Response example
{
"Errors": []
}
Response code
200 OK