Version 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: version-tags · 4 operations
GET /v1/version-tags/{tenant_slug}/{project_id}
List Version Tags
List the version 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_version_tags_v1_version_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 version tags. | application/json array of VersionTagSchema |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/version-tags/{tenant_slug}/{project_id}
Create Version Tag
Create a tag pointing at an existing schema revision.
Operation id: create_version_tag_v1_version_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 version tag.
application/json—VersionTagCreateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for create version tag. | application/json VersionTagSchema |
| 422 | Validation Error | application/json HTTPValidationError |
PATCH /v1/version-tags/{tenant_slug}/{project_id}/{tag_id}
Patch Version Tag
Move a tag to another revision, set its immutable lock / protection policy, and/or its message.
Operation id: patch_version_tag_v1_version_tags__tenant_slug___project_id___tag_id__patch
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. |
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 patch version tag.
application/json—VersionTagUpdateRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for patch version tag. | application/json VersionTagSchema |
| 422 | Validation Error | application/json HTTPValidationError |
DELETE /v1/version-tags/{tenant_slug}/{project_id}/{tag_id}
Delete Version Tag
Delete a tag (not allowed when immutable; protected tags require admin).
Operation id: delete_version_tag_v1_version_tags__tenant_slug___project_id___tag_id__delete
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. |
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 version tag. | application/json map of string |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
VersionTagCreateRequest
Create a named tag at a revision.
| Property | Type | Required | Description |
|---|---|---|---|
version_id | string | yes | Project version identifier or semantic version label, depending on context. |
name | string | yes | Human-readable name. |
message | string or null | no | Message. |
channel | string or null | no | Channel. |
immutable | boolean or null | no | Immutable. |
protected | boolean or null | no | Protected. |
VersionTagSchema
Git-like tag pointing at a schema revision (versions.id).
| Property | Type | Required | Description |
|---|---|---|---|
id | string | yes | Stable resource identifier. |
project_id | string | yes | Project identifier the resource belongs to. |
version_id | string | yes | Project version identifier or semantic version label, depending on context. |
name | string | yes | Human-readable name. |
message | string or null | no | Message. |
channel | string or null | no | Channel. |
immutable | boolean | no | Immutable. |
protected | boolean | no | Protected. |
created_by | string or null | no | Created By. |
created_at | string (date-time) or string or null | no | Creation timestamp (ISO 8601). |
updated_at | string (date-time) or string or null | no | Last update timestamp (ISO 8601). |
target_version_string | string or null | no | Target Version String. |
created_by_email | string or null | no | Email of the user who created the tag (list responses only; #3263). Tags record no updater. |
VersionTagUpdateRequest
Move tag to another revision, lock it, and/or change its message.
| Property | Type | Required | Description |
|---|---|---|---|
version_id | string or null | no | Project version identifier or semantic version label, depending on context. |
immutable | boolean or null | no | Immutable. |
protected | boolean or null | no | Protected. |
message | string or null | no | New tag message (#3265). Omit to keep it; null or an empty string clears it. |