Archive one version of an organization template
Refuse a create from one version. Sandboxes already running on it are unaffected, and the change is reversible with activate. A tag may keep pointing at it: a create through that tag then fails until the version is active again. Requires the organization admin or owner role.
Refuse a create from one version. Sandboxes already running on it are unaffected, and the change is reversible with activate. A tag may keep pointing at it: a create through that tag then fails until the version is active again. Requires the organization admin or owner role.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Organization name
Template name
length <= 80Template version id (ULID)
26 <= length <= 26Response Body
application/json
application/problem+json
curl -X PUT "https://example.com/v1/orgs/string/templates/string/versions/stringstringstringstringst/archive"{ "archived_at": "2019-08-24T14:15:22Z", "archived_by": "user", "base_image": { "digest": "sha256:9f0b7c1e2d3a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4", "ref": "ghcr.io/tektona-ai/sandbox-base:0.5.0" }, "build_id": "01K2S8VVQ9F3M6WQ2S0S2Z9J4R", "creatable": true, "create_refused_by": "template", "created_at": "2019-08-24T14:15:22Z", "id": "string", "image_bytes": 0, "pending_rule": "archive", "pending_rule_at": "2019-08-24T14:15:22Z", "sandbox": { "default_resources": { "cpu": 2, "disk": 10, "memory": 2 }, "env": [ { "name": "string", "value": "string" } ], "user": "dev", "workdir": "/workspace" }, "state": "string", "tags": [ "default", "stable" ]}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}Activate one version of a project template PUT
Allow a create from an archived version again. Requires the project admin role.
Archive one version of a project template PUT
Refuse a create from one version. Sandboxes already running on it are unaffected, and the change is reversible with activate. A tag may keep pointing at it: a create through that tag then fails until the version is active again. Requires the project admin role.