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