---
title: "Update template"
method: PUT
path: "/v1/templates/{id}"
tags: ["templates"]
---

# Update template

`PUT /v1/templates/{id}`

## Path parameters

- `id` string, uuid, required

## Request body

- Template
  - `credential` Credential
    - `secret` string, password
    - `username` string
  - `description` string
  - `name` string, required
  - `path` string, uri, required
  - `status` 'draft' | 'published' | 'unpublished'

## Response `200`

successful

- object
  - `modified` string

## Other responses

- `400` — bad request
- `401` — Authentication information is missing or invalid
- `404` — The specified resource was not found
- `409` — request failed due to a conflict create or update
- `500` — Internal Server Error
- `503` — a dependent service is unavailable

---

[API](https://skmtc.net/gmicloud/apis/cluster-engine-api.md) · [All operations](https://skmtc.net/gmicloud/apis/cluster-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gmicloud/cluster-engine-api/revisions/bcbab016469f/schema)
