Skip to main content
Version: 2024.1

Add domains to group

Description

Adds one or more domains to a given group.

URL

http://{Admin API IP}:{port#}/api/v1/groups/{id}/domain

ParameterDescription/Comments
ID(string) Group's ID. Can be retrieved via Get all groups.

HTTP method

POST

Request

Headers

Example header format:

Authorization: Basic <authorization token returned from the login method>

Content-Type: application/json

Request body
ParameterDescription/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

Response example
{
"Errors": []
}
Response code
201 Created