Add groups to domain
Description
Adds one or more groups to a given domain.
URL
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. |
HTTP method
POST
Request
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
Response example
{
"Errors": []
}
Response code
200 OK