Skip to main content

Classes

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: classes · 11 operations

GET /v1/classes/{tenant_slug}​

List Classes

List all classes for a tenant, optionally filtered by version.

Supports authentication via:

  • JWT token in Authorization header (Bearer token)
  • API key in X-API-Key header

Args: tenant_slug: The tenant slug version_id: Optional version ID to filter by auth_data: Authentication data (injected by dependency)

Returns: List of classes for the tenant/version

Operation id: list_classes_v1_classes__tenant_slug__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
version_idquerystring or nullnoFilter by version ID
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 classes.application/json array of ClassSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/classes/{tenant_slug}​

Create Class

Create a new class.

Supports authentication via JWT token or API key. The class will be created in the specified version.

Args: tenant_slug: The tenant slug request: Class creation data auth_data: Authentication data (injected by dependency)

Returns: The created class

Operation id: create_class_v1_classes__tenant_slug__post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
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 class.

Responses

StatusDescriptionBody
200Successful response for create class.application/json ClassSchema
422Validation Errorapplication/json HTTPValidationError

GET /v1/classes/{tenant_slug}/version/{version_id}/with-properties-tags​

Get Classes With Properties And Tags

Get all classes for a version with their properties and tags.

Deprecated for canvas hydration (DUW-1.2, private-suite#2569). This read has no LIMIT: it returns every class of the version with every property and every tag, which is why a large catalog makes the designer canvas choke. Surfaces that need a selection — the unified workspace and anything else hydrating what a user picked — must use GET /v1/workspace/{tenant_slug}/version/{version_id}/classes with class_ids or domain_id instead. It stays here, unchanged, for the surfaces that genuinely do need the whole version (exports, scoring, readiness sweeps).

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug version_id: The version ID auth_data: Authentication data (injected by dependency)

Returns: List of classes with properties and tags

Operation id: get_classes_with_properties_and_tags_v1_classes__tenant_slug__version__version_id__with_properties_tags_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 get classes with properties and tags.application/json array of object
422Validation Errorapplication/json HTTPValidationError

GET /v1/classes/{tenant_slug}/{class_id}​

Get Class

Get a specific class by ID.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID auth_data: Authentication data (injected by dependency)

Returns: The class details

Operation id: get_class_v1_classes__tenant_slug___class_id__get

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.

Responses

StatusDescriptionBody
200Successful response for get class.application/json ClassSchema
422Validation Errorapplication/json HTTPValidationError

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

Update Class

Update an existing class.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID request: Class update data auth_data: Authentication data (injected by dependency)

Returns: The updated class

Operation id: update_class_v1_classes__tenant_slug___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 update class.

Responses

StatusDescriptionBody
200Successful response for update class.application/json ClassSchema
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/classes/{tenant_slug}/{class_id}​

Delete Class

Delete a class (soft delete).

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID auth_data: Authentication data (injected by dependency)

Returns: Success message

Operation id: delete_class_v1_classes__tenant_slug___class_id__delete

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.

Responses

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

GET /v1/classes/{tenant_slug}/{class_id}/properties​

Get Class Properties

Get all properties for a specific class.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID auth_data: Authentication data (injected by dependency)

Returns: List of properties for the class

Operation id: get_class_properties_v1_classes__tenant_slug___class_id__properties_get

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.

Responses

StatusDescriptionBody
200Successful response for get class properties.application/json array of object
422Validation Errorapplication/json HTTPValidationError

POST /v1/classes/{tenant_slug}/{class_id}/properties​

Add Property To Class

Add a property to a class.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID request: Property data containing: - property_id: Optional library property ID - name: Property name (required) - description: Optional property description - data: Property schema data (required) - parent_id: Optional parent property ID for nested properties auth_data: Authentication data (injected by dependency)

Returns: The created class property

Operation id: add_property_to_class_v1_classes__tenant_slug___class_id__properties_post

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 add property to class.

  • application/json — object

Responses

StatusDescriptionBody
200Successful response for add property to class.application/json object
422Validation Errorapplication/json HTTPValidationError

PUT /v1/classes/{tenant_slug}/{class_id}/properties/{class_property_id}​

Update Class Property

Update a property in a class.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID class_property_id: The class property ID request: Property update data containing: - name: Optional property name - description: Optional property description - data: Optional property schema data auth_data: Authentication data (injected by dependency)

Returns: The updated class property

Operation id: update_class_property_v1_classes__tenant_slug___class_id__properties__class_property_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
class_idpathstringyesClass identifier within the version.
class_property_idpathstringyesPath parameter identifying the class property 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 class property.

  • application/json — object

Responses

StatusDescriptionBody
200Successful response for update class property.application/json object
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/classes/{tenant_slug}/{class_id}/properties/{class_property_id}​

Delete Class Property

Delete a property from a class.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID class_property_id: The class property ID auth_data: Authentication data (injected by dependency)

Returns: Success message

Operation id: delete_class_property_v1_classes__tenant_slug___class_id__properties__class_property_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
class_idpathstringyesClass identifier within the version.
class_property_idpathstringyesPath parameter identifying the class property 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 class property.application/json map of string
422Validation Errorapplication/json HTTPValidationError

GET /v1/classes/{tenant_slug}/{class_id}/with-properties-tags​

Get Class With Properties And Tags

Get a single class with its properties and tags.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug class_id: The class ID auth_data: Authentication data (injected by dependency)

Returns: Class with properties and tags

Operation id: get_class_with_properties_and_tags_v1_classes__tenant_slug___class_id__with_properties_tags_get

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.

Responses

StatusDescriptionBody
200Successful response for get class with properties and tags.application/json object
422Validation Errorapplication/json HTTPValidationError

Schemas used​

ClassCreateRequest​

Request body for creating a new class on a project version.

PropertyTypeRequiredDescription
version_idstringyesProject version identifier or semantic version label, depending on context.
namestringyesHuman-readable name.
descriptionstring or nullnoFree-text description.
schemaobjectnoEmbedded JSON Schema document.
enabledbooleannoWhether the resource is active.

ClassSchema​

A version-scoped class (component schema) with its JSON Schema payload and tags.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
version_idstringyesProject version identifier or semantic version label, depending on context.
namestringyesClass name as it appears in generated OpenAPI components.
descriptionstring or nullnoFree-text description.
schemaobject or nullnoEmbedded JSON Schema document.
enabledbooleannoWhether the resource is active.
tagsarray of TagSchema or nullnoAssociated tag labels.
created_atstring (date-time) or string or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or string or nullnoLast update timestamp (ISO 8601).

ClassUpdateRequest​

Partial update payload for a class, including canvas metadata when provided.

PropertyTypeRequiredDescription
namestring or nullnoHuman-readable name.
descriptionstring or nullnoFree-text description.
schemaobject or nullnoEmbedded JSON Schema document.
enabledboolean or nullnoWhether the resource is active.
canvas_metadataobject or nullnoCanvas Metadata.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.