SandboxesSandbox TemplatesTemplate management

Update a project template

Replace the template's display name and description. This mints no version and starts no build. metadata.name has to match the path. Requires the project admin role.

PUT
/v1/orgs/{org}/projects/{project}/templates/{name}

Replace the template's display name and description. This mints no version and starts no build. metadata.name has to match the path. Requires the project admin role.

AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

org*string

Organization name

project*string

Project name

name*string

Template name

Lengthlength <= 80

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

metadata*

Response Body

application/json

application/problem+json

curl -X PUT "https://example.com/v1/orgs/string/projects/string/templates/string" \  -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"}