Create an organization template
Create a template owned by the organization, referenced as org/<name>. Requires the organization admin or owner role.
Create a template owned by the organization, referenced as org/<name>. 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
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/orgs/string/templates" \ -H "Content-Type: application/json" \ -d '{ "metadata": { "name": "string" } }'{ "created_at": "2019-08-24T14:15:22Z", "id": "string", "metadata": { "description": "string", "display_name": "string", "name": "string" }, "reference": "go-dev", "scope": "system", "state": "active", "stats": { "builds": { "failed": 2, "succeeded": 5, "total": 8 }, "sandboxes": 3, "stored_bytes": 4187725824, "tags": 2, "versions": { "active": 3, "archived": 4 } }, "updated_at": "2019-08-24T14:15:22Z"}{ "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"}Archive a project template PUT
Refuse a create from the template. Sandboxes already running on it are unaffected, and the change is reversible with activate. Requires the project admin role.
Create a project template POST
Create a template scoped to the project, referenced as project/<name> or by the bare name. Requires the project admin role.