Skip to main content

Project tags

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: project-tags · 7 operations

GET /v1/project-tags/{tenant_slug}/classes/{class_id}​

List Class Tags

List tags assigned to a class.

Operation id: list_class_tags_v1_project_tags__tenant_slug__classes__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 list class tags.application/json array of ClassTagSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/project-tags/{tenant_slug}/classes/{class_id}​

Assign Tag To Class

Assign a project tag to a class.

Operation id: assign_tag_to_class_v1_project_tags__tenant_slug__classes__class_id__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 assign tag to class.

Responses

StatusDescriptionBody
200Successful response for assign tag to class.application/json ClassTagSchema
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/project-tags/{tenant_slug}/classes/{class_id}/{tag_id}​

Remove Tag From Class

Remove a tag assignment from a class.

Operation id: remove_tag_from_class_v1_project_tags__tenant_slug__classes__class_id___tag_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
class_idpathstringyesClass identifier within the version.
tag_idpathstringyesTag identifier.
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 remove tag from class.application/json map of boolean
422Validation Errorapplication/json HTTPValidationError

GET /v1/project-tags/{tenant_slug}/{project_id}​

List Project Tags

List the class tags of a project, by name.

The body is a JSON array of at most limit tags (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).

Args: tenant_slug: The tenant in the URL. project_id: The project whose tags are listed. 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: The authenticated principal.

Returns: One page of tags.

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

Operation id: list_project_tags_v1_project_tags__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 project tags.application/json array of TagSchema
422Validation Errorapplication/json HTTPValidationError

POST /v1/project-tags/{tenant_slug}/{project_id}​

Create Project Tag

Create a class tag in a project.

Operation id: create_project_tag_v1_project_tags__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 project tag.

Responses

StatusDescriptionBody
200Successful response for create project tag.application/json TagSchema
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/project-tags/{tenant_slug}/{tag_id}​

Update Project Tag

Update a project class tag.

Operation id: update_project_tag_v1_project_tags__tenant_slug___tag_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
tag_idpathstringyesTag identifier.
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 project tag.

Responses

StatusDescriptionBody
200Successful response for update project tag.application/json TagSchema
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/project-tags/{tenant_slug}/{tag_id}​

Delete Project Tag

Delete a project class tag.

Operation id: delete_project_tag_v1_project_tags__tenant_slug___tag_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
tag_idpathstringyesTag identifier.
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 project tag.application/json map of boolean
422Validation Errorapplication/json HTTPValidationError

Schemas used​

ClassTagAssignRequest​

Request body that assigns a tag to a class by tag id.

PropertyTypeRequiredDescription
tag_idstringyesTag ID.

ClassTagSchema​

Association between a class and a project tag.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
class_idstringyesClass identifier the resource is attached to.
tag_idstringyesTag ID.
tag_namestring or nullnoTag Name.
tag_colorstring or nullnoTag Color.
created_atstring or nullnoCreation timestamp (ISO 8601).

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

TagCreateRequest​

Request model for creating a project class tag.

PropertyTypeRequiredDescription
namestringyesHuman-readable name.
colorstringnoColor.
descriptionstring or nullnoFree-text description.

TagSchema​

TagSchema schema.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
project_idstringyesProject identifier the resource belongs to.
namestringyesHuman-readable name.
colorstringnoColor.
descriptionstring or nullnoFree-text description.
created_atstring or nullnoCreation timestamp (ISO 8601).
updated_atstring or nullnoLast update timestamp (ISO 8601).

TagUpdateRequest​

Request model for updating a project class tag.

PropertyTypeRequiredDescription
namestring or nullnoHuman-readable name.
colorstring or nullnoColor.
descriptionstring or nullnoFree-text description.