Skip to main content

Properties

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

Tag: properties · 5 operations

GET /v1/properties/{tenant_slug}/{project_id}​

List Properties

List the properties of a project by name, each with used_by (the class names that use it, across the project's live versions) and used_by_count (#3223).

The body is a JSON array of at most limit properties (1,000 at most). The X-Has-More response header says whether more exist and X-Next-Cursor carries the cursor of the next page (#7196).

Supports authentication via:

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

Args: tenant_slug: The tenant slug project_id: The project ID response: The outgoing response (paging headers are set on it) limit: Page size cursor: Where the page starts (the previous page's X-Next-Cursor) auth_data: Authentication data (injected by dependency)

Returns: One page of the project's properties

Raises: HTTPException: 400 for a malformed cursor; 404 when the project is unknown.

Operation id: list_properties_v1_properties__tenant_slug___project_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
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 properties.application/json array of ProjectPropertySchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/properties/{tenant_slug}/{project_id}​

Create Property

Create a new property.

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug project_id: The project ID request: Property creation data auth_data: Authentication data (injected by dependency)

Returns: The created property

Operation id: create_property_v1_properties__tenant_slug___project_id__post

Parameters

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

Responses

StatusDescriptionBody
200Successful response for create property.application/json ProjectPropertySchema
422Validation Errorapplication/json HTTPValidationError

GET /v1/properties/{tenant_slug}/{project_id}/{property_id}​

Get Property

Get a specific property by ID, with usage — every class attribute that uses it, across the project's live versions (#3224).

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug project_id: The project ID property_id: The property ID auth_data: Authentication data (injected by dependency)

Returns: The property details

Operation id: get_property_v1_properties__tenant_slug___project_id___property_id__get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
property_idpathstringyesProperty identifier on the class.
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 property.application/json ProjectPropertySchema
422Validation Errorapplication/json HTTPValidationError

PUT /v1/properties/{tenant_slug}/{project_id}/{property_id}​

Update Property

Update an existing property. expectedUpdatedAt makes it conditional (409 update_conflict when the property changed since); requiredEverywhere also sets required on every class attribute using it in an unpublished version, reported in required_everywhere_result (#3226).

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug project_id: The project ID property_id: The property ID request: Property update data auth_data: Authentication data (injected by dependency)

Returns: The updated property

Operation id: update_property_v1_properties__tenant_slug___project_id___property_id__put

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
property_idpathstringyesProperty identifier on the class.
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 property.

Responses

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

DELETE /v1/properties/{tenant_slug}/{project_id}/{property_id}​

Delete Property

Delete a property (soft delete). With force=true, first remove the class attributes that use it in unpublished versions — all in one transaction — and report how many as detached; any use in a published version refuses the whole delete with 409 (#3227).

Supports authentication via JWT token or API key.

Args: tenant_slug: The tenant slug project_id: The project ID property_id: The property ID auth_data: Authentication data (injected by dependency)

Returns: Success message

Operation id: delete_property_v1_properties__tenant_slug___project_id___property_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
project_idpathstringyesProject identifier that scopes the request.
property_idpathstringyesProperty identifier on the class.
forcequerybooleannoAlso remove every class attribute that uses the property, in the same transaction (#3227). Refused with 409 property_in_published_version when any use is in a published 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 property.application/json object
422Validation Errorapplication/json HTTPValidationError

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

ProjectPropertyCreateRequest​

Request body for creating a property on a class.

PropertyTypeRequiredDescription
namestringyesHuman-readable name.
descriptionstring or nullnoFree-text description.
dataobjectyesStructured payload or extension data for the resource.

ProjectPropertySchema​

A property on a project class, including nested structure and optional primitive binding.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
project_idstringyesProject identifier the resource belongs to.
namestringyesHuman-readable name.
descriptionstring or nullnoFree-text description.
dataobjectyesStructured payload or extension data for the resource.
enabledbooleannoWhether the resource is active.
created_atstring (date-time) or string or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or string or nullnoLast update timestamp (ISO 8601).
used_byarray of string or nullnoDistinct names of the classes (in any live version of the project) that use this property; list responses only (#3223).
used_by_countinteger or nullnoNumber of class properties (across live versions) that reference this property; list responses only.
usagearray of ProjectPropertyUsage or nullnoEvery class attribute (in any live version of the project) that uses this property, one entry per distinct class name, attribute name and required flag, sorted; single-property GET only (#3224).
required_everywhere_resultPropertyRequiredEverywhereResult or nullnoCounts from required_everywhere on the PUT that set it (#3226); null on other responses.

ProjectPropertyUpdateRequest​

Partial update payload for a class property.

PropertyTypeRequiredDescription
namestring or nullnoHuman-readable name.
descriptionstring or nullnoFree-text description.
dataobject or nullnoStructured payload or extension data for the resource.
enabledboolean or nullnoWhether the resource is active.
expectedUpdatedAtstring (date-time) or nullnoOptimistic-concurrency precondition (CLI 6.4, #3226): the property's updated_at as the caller last read it. When set, the update applies only if the property is unchanged since; otherwise the request fails with 409 code 'update_conflict' and the property's current updated_at.
requiredEverywhereboolean or nullnoSet required to this value on every class attribute that uses the property in an unpublished version of the project, in the same transaction (#3226). Published versions are left alone and counted in the response's required_everywhere_result.