Add resources to domain
Description
Add resources from other domains to a give domain.
HTTP method
POST
Request
URL
http://{Admin API IP}:{port#}/api/v1/domains/{id}/resources
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. Can be retrieved via Get all domains. |
Request body
Parameter | Description/Comments |
---|---|
id | (string) Resource id. Can be retrieved via Get domain's resources. |
IncludeDescendants |
(bool) (Optional) Include sub-resources in the domain. Default is true. |
Request example
{
"Resources": [
{
"Id": "6deda6fb-8f56-4c12-ac29-00b3fb7756db",
"IncludeDescendants": true
}
]
}
Response
Response example
{
"Errors": []
}
Response code
201 Created