MCPcopy Index your code
hub / github.com/coder/coder / postArchiveTemplateVersion

Method postArchiveTemplateVersion

coderd/templateversions.go:1258–1260  ·  view source on GitHub ↗

@Summary Archive template version @ID archive-template-version @Security CoderSessionToken @Produce json @Tags Templates @Param templateversion path string true "Template version ID" format(uuid) @Success 200 {object} codersdk.Response @Router /api/v2/templateversions/{templateversion}/archive [post

()

Source from the content-addressed store, hash-verified

1256// @Success 200 {object} codersdk.Response
1257// @Router /api/v2/templateversions/{templateversion}/archive [post]
1258func (api *API) postArchiveTemplateVersion() func(rw http.ResponseWriter, r *http.Request) {
1259 return api.setArchiveTemplateVersion(true)
1260}
1261
1262// @Summary Unarchive template version
1263// @ID unarchive-template-version

Callers 1

NewFunction · 0.95

Calls 1

Tested by

no test coverage detected