Skip to main content

Domains

Generated from apiome-rest/openapi.yaml (API version 1.204.1) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: domains · 6 operations

PUT /v1/domains/{tenant_slug}/classes/{class_id}​

Assign Class Domain

Move a class into a domain, or into shared/ with domain_id: null.

Operation id: assign_class_domain_v1_domains__tenant_slug__classes__class_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
class_idpathstringyesClass identifier within the version.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for assign class domain.

Responses

StatusDescriptionBody
200Successful response for assign class domain.application/json DomainMemberSchema
422Validation Errorapplication/json HTTPValidationError

PUT /v1/domains/{tenant_slug}/paths/{path_id}​

Assign Path Domain

Move a path into a domain, or into shared/ with domain_id: null.

Operation id: assign_path_domain_v1_domains__tenant_slug__paths__path_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
path_idpathstringyesPath identifier within the version.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for assign path domain.

Responses

StatusDescriptionBody
200Successful response for assign path domain.application/json DomainMemberSchema
422Validation Errorapplication/json HTTPValidationError

GET /v1/domains/{tenant_slug}/version/{version_id}​

List Domains

List a version's domain folders in tree order, with shared/ last.

The synthetic shared/ entry is always present, including for a version that has no domains at all — where it is the whole tree.

Operation id: list_domains_v1_domains__tenant_slug__version__version_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list domains.application/json array of DomainSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/domains/{tenant_slug}/version/{version_id}​

Create Domain

Create a domain folder in a version.

Operation id: create_domain_v1_domains__tenant_slug__version__version_id__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idpathstringyesVersion identifier or semantic version label, depending on the route.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for create domain.

Responses

StatusDescriptionBody
201Successful response for create domain.application/json DomainSchema
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/domains/{tenant_slug}/{domain_id}​

Update Domain

Rename or reorder a domain folder.

Operation id: update_domain_v1_domains__tenant_slug___domain_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
domain_idpathstringyesPath parameter identifying the domain id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for update domain.

Responses

StatusDescriptionBody
200Successful response for update domain.application/json DomainSchema
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/domains/{tenant_slug}/{domain_id}​

Delete Domain

Delete a domain folder, moving its classes and paths to shared/.

Returns the number of members released, so the caller can report what moved rather than asserting that nothing was lost.

Operation id: delete_domain_v1_domains__tenant_slug___domain_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
domain_idpathstringyesPath parameter identifying the domain id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for delete domain.application/json object
422Validation Errorapplication/json HTTPValidationError

Schemas used​

DomainAssignmentRequest​

Request model for moving a class or path between domains.

domain_id is a domain UUID, the literal "shared", or null — the last two both meaning the derived bucket. It is required rather than optional so that omitting it is a validation error instead of a silent move to shared/.

PropertyTypeRequiredDescription
domain_idstring or nullyesDomain ID.

DomainCreateRequest​

Request model for creating a domain folder.

slug is derived from name when omitted, so the common case is a single field. sort_order defaults to the end of the tree.

PropertyTypeRequiredDescription
namestringyesHuman-readable name.
slugstring or nullnoURL-safe identifier.
sort_orderinteger or nullnoSort Order.

DomainMemberSchema​

A class or path with its current domain membership.

name carries the class name or the pathname, whichever the member is, so one shape answers both move endpoints.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
version_idstringyesProject version identifier or semantic version label, depending on context.
namestringyesHuman-readable name.
domain_idstring or nullnoDomain ID.
kindstringyesKind.

DomainSchema​

A domain folder grouping a version's classes and paths (DUW-1.1).

id is None for exactly one entry per version: the derived shared/ bucket, which collects members with no domain. A client must read virtual rather than inferring editability from the name, since a real domain may legitimately be called anything else.

PropertyTypeRequiredDescription
idstring or nullnoStable resource identifier.
version_idstringyesProject version identifier or semantic version label, depending on context.
namestringyesHuman-readable name.
slugstringyesURL-safe identifier.
sort_orderintegernoSort Order.
virtualbooleannoVirtual.
created_atstring or nullnoCreation timestamp (ISO 8601).
updated_atstring or nullnoLast update timestamp (ISO 8601).

DomainUpdateRequest​

Request model for renaming or reordering a domain.

Every field is optional and only the supplied ones are written; renaming a domain never moves it in the tree unless sort_order is given too.

PropertyTypeRequiredDescription
namestring or nullnoHuman-readable name.
slugstring or nullnoURL-safe identifier.
sort_orderinteger or nullnoSort Order.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.