latestOpenAPI 3.0.02026-08-10221235717.8 KB

e21ad140ec3c

public
ArtefactVersion

Update Version of an Artefact.

Update the version of a specified Artefact registered with your organization".

patch/orgs/{orgId}/artefacts/{artefactId}/versions/{versionId}

Path parameters

orgIdstring required

The organization ID.

artefactIdstring required

The Artefact ID.

versionIdstring required

The Version ID.

Request body

archivedboolean nullable required

The Value of the archived value.

Example request

{
  "archived": true
}

Response

The updated Artefact Version.

OR

Example response

{
  "type": "container",
  "artefact_id": "01234567-89ab-cdef-0123-456789abcdef",
  "commit": "060c3d6530a881afb808f105f36af25e1ad1b2f3",
  "created_at": "2020-06-22T09:37:23.523Z",
  "created_by": "01234567-89ab-cdef-0123-456789abcdef",
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "name": "registry.humanitec.io/my-org/my-service",
  "ref": "refs/heads/main",
  "updated_at": "2020-06-22T09:37:23.523Z",
  "updated_by": "01234567-89ab-cdef-0123-456789abcdef",
  "version": "1.2.7",
  "digest": "sha256:8414aa82208bc4c2761dc149df67e25c6b8a9380e5d8c4e7b5c84ca2d04bb244"
}