Skip to main content

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

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 version tags.application/json array of VersionTagSchema
422Validation Errorapplication/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

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 version tag.

Responses

StatusDescriptionBody
200Successful response for create version tag.application/json VersionTagSchema
422Validation Errorapplication/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

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

Responses

StatusDescriptionBody
200Successful response for patch version tag.application/json VersionTagSchema
422Validation Errorapplication/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

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

Schemas used​

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.

VersionTagCreateRequest​

Create a named tag at a revision.

PropertyTypeRequiredDescription
version_idstringyesProject version identifier or semantic version label, depending on context.
namestringyesHuman-readable name.
messagestring or nullnoMessage.
channelstring or nullnoChannel.
immutableboolean or nullnoImmutable.
protectedboolean or nullnoProtected.

VersionTagSchema​

Git-like tag pointing at a schema revision (versions.id).

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
project_idstringyesProject identifier the resource belongs to.
version_idstringyesProject version identifier or semantic version label, depending on context.
namestringyesHuman-readable name.
messagestring or nullnoMessage.
channelstring or nullnoChannel.
immutablebooleannoImmutable.
protectedbooleannoProtected.
created_bystring or nullnoCreated By.
created_atstring (date-time) or string or nullnoCreation timestamp (ISO 8601).
updated_atstring (date-time) or string or nullnoLast update timestamp (ISO 8601).
target_version_stringstring or nullnoTarget Version String.
created_by_emailstring or nullnoEmail 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.

PropertyTypeRequiredDescription
version_idstring or nullnoProject version identifier or semantic version label, depending on context.
immutableboolean or nullnoImmutable.
protectedboolean or nullnoProtected.
messagestring or nullnoNew tag message (#3265). Omit to keep it; null or an empty string clears it.