For the complete documentation index, see llms.txt. This page is also available as Markdown.

Domains

Get parentable domain IDs

get

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.

Path parameters
domain_idstringRequired

Domain ID

Responses
200

Parentable IDs

application/json
datainteger[]Required

List of domain IDs that can be parents

get/api/domains/{domain_id}/parentable_ids
GET /api/domains/{domain_id}/parentable_ids HTTP/1.1
Accept: */*
{
  "data": [
    1,
    2,
    3
  ]
}

Count business concepts in domain for user

get

Count the business concepts within a domain for the specified user.

Requires the 'View domains' permission for the domain.

Path parameters
domain_idstringRequired

Domain ID

Query parameters
user_namestringRequired

User name

Responses
200

Count response

application/json
get/api/domains/{domain_id}/business_concepts/{user_name}/count
GET /api/domains/{domain_id}/business_concepts/{user_name}/count?user_name=text HTTP/1.1
Accept: */*
{
  "data": {
    "counter": 5
  }
}

List domains

get

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.

Query parameters
actionsstringOptional

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.

filterstringOptional

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.

Responses
200

Domains list

application/json
_actionsobjectOptional
get/api/domains
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": {}
}

Create domain

post

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.

Body
Responses
201

Domain created

application/json
_actionsobjectOptional
post/api/domains
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": {}
}

Get domain by id

get

Returns a domain and its parent information when the authenticated user has the 'View domains' permission for that domain.

Path parameters
idstringRequired

Domain ID

Responses
200

Domain

application/json
_actionsobjectOptional
get/api/domains/{id}
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": {}
}

Update domain

put

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.

Path parameters
idstringRequired

Domain ID

Body
Responses
200

Domain updated

application/json
_actionsobjectOptional
put/api/domains/{id}
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 domain

delete

Delete a domain identified by the given ID.

Requires the 'Delete domains' permission.

Path parameters
idstringRequired

Domain ID

Responses
204

Domain deleted

No content

delete/api/domains/{id}
DELETE /api/domains/{id} HTTP/1.1
Accept: */*

No content

Update domain

patch

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.

Path parameters
idstringRequired

Domain ID

Body
Responses
200

Domain updated

application/json
_actionsobjectOptional
patch/api/domains/{id}
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