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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
class_id | path | string | yes | Class identifier within the version. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list class tags. | application/json array of ClassTagSchema |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
class_id | path | string | yes | Class identifier within the version. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for assign tag to class.
application/json—ClassTagAssignRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for assign tag to class. | application/json ClassTagSchema |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
class_id | path | string | yes | Class identifier within the version. |
tag_id | path | string | yes | Tag identifier. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for remove tag from class. | application/json map of boolean |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
limit | query | integer | no | Page size. At most 1000. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list project tags. | application/json array of TagSchema |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
project_id | path | string | yes | Project identifier that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for create project tag.
application/json—TagCreateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for create project tag. | application/json TagSchema |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
tag_id | path | string | yes | Tag identifier. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for update project tag.
application/json—TagUpdateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for update project tag. | application/json TagSchema |
| 422 | Validation Error | application/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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
tag_id | path | string | yes | Tag identifier. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for delete project tag. | application/json map of boolean |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
ClassTagAssignRequest
Request body that assigns a tag to a class by tag id.
| Property | Type | Required | Description |
|---|---|---|---|
tag_id | string | yes | Tag ID. |
ClassTagSchema
Association between a class and a project tag.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
class_id | string | yes | Class identifier the resource is attached to. |
tag_id | string | yes | Tag ID. |
tag_name | string or null | no | Tag Name. |
tag_color | string or null | no | Tag Color. |
created_at | string or null | no | Creation timestamp (ISO 8601). |
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
TagCreateRequest
Request model for creating a project class tag.
| Property | Type | Required | Description |
|---|---|---|---|
name | string | yes | Human-readable name. |
color | string | no | Color. |
description | string or null | no | Free-text description. |
TagSchema
TagSchema schema.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
project_id | string | yes | Project identifier the resource belongs to. |
name | string | yes | Human-readable name. |
color | string | no | Color. |
description | string or null | no | Free-text description. |
created_at | string or null | no | Creation timestamp (ISO 8601). |
updated_at | string or null | no | Last update timestamp (ISO 8601). |
TagUpdateRequest
Request model for updating a project class tag.
| Property | Type | Required | Description |
|---|---|---|---|
name | string or null | no | Human-readable name. |
color | string or null | no | Color. |
description | string or null | no | Free-text description. |