Domains
Returns domain IDs that can be assigned as parents of the specified domain.
Access to the current domain requires the 'View domains' permission; returned candidates are restricted by the user's domain permissions.
Domain ID
Parentable IDs
List of domain IDs that can be parents
Unauthorized
Forbidden
Internal Server Error
GET /api/domains/{domain_id}/parentable_ids HTTP/1.1
Accept: */*
{
"data": [
1,
2,
3
]
}Count the business concepts within a domain for the specified user.
Requires the 'View domains' permission for the domain.
Domain ID
User name
Count response
Unauthorized
Forbidden
Not found
Internal Server Error
GET /api/domains/{domain_id}/business_concepts/{user_name}/count?user_name=text HTTP/1.1
Accept: */*
{
"data": {
"counter": 5
}
}Returns domains the authenticated user can view, which requires the 'View domains' permission.
Without actions, only domains for which the user has visibility permissions are returned and response hypermedia is included.
With actions, returns domains for which the user has at least one requested ability; set filter=all to require every requested ability instead.
Comma-separated domain abilities used to filter the result, for example show,create,update. The action names are evaluated against each domain and are not permission names sent to the authorization service.
When set to all with actions, keep only domains for which the user has every requested ability. For any other value or when omitted, keep domains for which the user has at least one requested ability.
Domains list
Unauthorized
Forbidden
Internal Server Error
GET /api/domains HTTP/1.1
Accept: */*
{
"_actions": {
"create": {
"href": "/api/domains",
"input": {},
"method": "POST"
},
"index": {
"href": "/api/domains",
"input": {},
"method": "GET"
}
},
"data": [
{
"description": "Finance domain",
"external_id": "FIN-001",
"id": 1,
"name": "Finance",
"parent_id": null,
"type": "domain"
}
],
"hypermedia": {}
}Creates a domain.
Requires the 'Create domains' permission for the new domain; when parent_id is supplied, the same permission is checked for the parent domain.
If parent_id is omitted, the domain is created at the root level.
Domain created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/domains HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"domain": {
"name": "Finance",
"parent_id": null
}
}{
"_actions": {
"create": {
"href": "/api/domains",
"input": {},
"method": "POST"
},
"index": {
"href": "/api/domains",
"input": {},
"method": "GET"
}
},
"data": {
"description": "Finance domain",
"domain_group": {
"id": 10,
"name": "Group A",
"status": "root"
},
"external_id": "FIN-001",
"id": 1,
"name": "Finance",
"parent_id": null,
"parents": [],
"type": "domain"
},
"hypermedia": {}
}Returns a domain and its parent information when the authenticated user has the 'View domains' permission for that domain.
Domain ID
Domain
Unauthorized
Forbidden
Internal Server Error
GET /api/domains/{id} HTTP/1.1
Accept: */*
{
"_actions": {
"create": {
"href": "/api/domains",
"input": {},
"method": "POST"
},
"index": {
"href": "/api/domains",
"input": {},
"method": "GET"
}
},
"data": {
"description": "Finance domain",
"domain_group": {
"id": 10,
"name": "Group A",
"status": "root"
},
"external_id": "FIN-001",
"id": 1,
"name": "Finance",
"parent_id": null,
"parents": [],
"type": "domain"
},
"hypermedia": {}
}Updates a domain.
Requires the 'Update domains' permission for changes within the current parent. Changing parent_id additionally requires authorization to delete or move the current domain and the 'Create domains' permission on the new parent.
Domain ID
Domain updated
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
PUT /api/domains/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"domain": {
"name": "Finance Updated",
"parent_id": 2
}
}{
"_actions": {
"create": {
"href": "/api/domains",
"input": {},
"method": "POST"
},
"index": {
"href": "/api/domains",
"input": {},
"method": "GET"
}
},
"data": {
"description": "Finance domain",
"domain_group": {
"id": 10,
"name": "Group A",
"status": "root"
},
"external_id": "FIN-001",
"id": 1,
"name": "Finance",
"parent_id": null,
"parents": [],
"type": "domain"
},
"hypermedia": {}
}Delete a domain identified by the given ID.
Requires the 'Delete domains' permission.
Domain ID
Domain deleted
No content
Unauthorized
Forbidden
Not found
Internal Server Error
DELETE /api/domains/{id} HTTP/1.1
Accept: */*
No content
Updates a domain.
Requires the 'Update domains' permission for changes within the current parent. Changing parent_id additionally requires authorization to delete or move the current domain and the 'Create domains' permission on the new parent.
Domain ID
Domain updated
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
PATCH /api/domains/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 51
{
"domain": {
"name": "Finance Updated",
"parent_id": 2
}
}{
"_actions": {
"create": {
"href": "/api/domains",
"input": {},
"method": "POST"
},
"index": {
"href": "/api/domains",
"input": {},
"method": "GET"
}
},
"data": {
"description": "Finance domain",
"domain_group": {
"id": 10,
"name": "Group A",
"status": "root"
},
"external_id": "FIN-001",
"id": 1,
"name": "Finance",
"parent_id": null,
"parents": [],
"type": "domain"
},
"hypermedia": {}
}Last updated