Skip to content

Commit 73aa2dd

Browse files
committed
Update metadata
1 parent f5bf8f9 commit 73aa2dd

File tree

6 files changed

+63
-3
lines changed

6 files changed

+63
-3
lines changed

coderd/apidoc/docs.go

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/coderd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ func New(options *Options) *API {
495495
httpmw.ExtractTemplateVersionParam(options.Database),
496496
)
497497
r.Get("/", api.templateVersion)
498+
r.Patch("/", api.patchTemplateVersion)
498499
r.Patch("/cancel", api.patchCancelTemplateVersion)
499500
r.Get("/schema", api.templateVersionSchema)
500501
r.Get("/parameters", api.templateVersionParameters)

coderd/templateversions.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ func (api *API) templateVersion(rw http.ResponseWriter, r *http.Request) {
6969
// @Produce json
7070
// @Tags Templates
7171
// @Param templateversion path string true "Template version ID" format(uuid)
72+
// @Param request body codersdk.PatchTemplateVersionRequest true "Patch template version request"
7273
// @Success 200 {object} codersdk.TemplateVersion
7374
// @Router /templateversions/{templateversion} [patch]
7475
func (api *API) patchTemplateVersion(rw http.ResponseWriter, r *http.Request) {

docs/api/schemas.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3002,6 +3002,20 @@ Parameter represents a set value for the scope.
30023002
| `none` |
30033003
| `data` |
30043004

3005+
## codersdk.PatchTemplateVersionRequest
3006+
3007+
```json
3008+
{
3009+
"name": "string"
3010+
}
3011+
```
3012+
3013+
### Properties
3014+
3015+
| Name | Type | Required | Restrictions | Description |
3016+
| ------ | ------ | -------- | ------------ | ----------- |
3017+
| `name` | string | false | | |
3018+
30053019
## codersdk.PprofConfig
30063020

30073021
```json

docs/api/templates.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,17 +1257,27 @@ To perform this operation, you must be authenticated. [Learn more](authenticatio
12571257
```shell
12581258
# Example request using curl
12591259
curl -X PATCH http://coder-server:8080/api/v2/templateversions/{templateversion} \
1260+
-H 'Content-Type: application/json' \
12601261
-H 'Accept: application/json' \
12611262
-H 'Coder-Session-Token: API_KEY'
12621263
```
12631264

12641265
`PATCH /templateversions/{templateversion}`
12651266

1267+
> Body parameter
1268+
1269+
```json
1270+
{
1271+
"name": "string"
1272+
}
1273+
```
1274+
12661275
### Parameters
12671276

1268-
| Name | In | Type | Required | Description |
1269-
| ----------------- | ---- | ------------ | -------- | ------------------- |
1270-
| `templateversion` | path | string(uuid) | true | Template version ID |
1277+
| Name | In | Type | Required | Description |
1278+
| ----------------- | ---- | -------------------------------------------------------------------------------------- | -------- | ------------------------------ |
1279+
| `templateversion` | path | string(uuid) | true | Template version ID |
1280+
| `body` | body | [codersdk.PatchTemplateVersionRequest](schemas.md#codersdkpatchtemplateversionrequest) | true | Patch template version request |
12711281

12721282
### Example responses
12731283

0 commit comments

Comments
 (0)