feat: allow for default presets (#18445)

This commit is contained in:
Danny Kopping
2025-06-24 12:19:19 +02:00
committed by GitHub
parent 3fb5d0b52d
commit 6cc4cfa346
54 changed files with 2186 additions and 658 deletions

View File

@ -5497,6 +5497,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
```json
{
"default": true,
"id": "string",
"name": "string",
"parameters": [
@ -5512,6 +5513,7 @@ Git clone makes use of this by parsing the URL from: 'Username for "https://gith
| Name | Type | Required | Restrictions | Description |
|--------------|---------------------------------------------------------------|----------|--------------|-------------|
| `default` | boolean | false | | |
| `id` | string | false | | |
| `name` | string | false | | |
| `parameters` | array of [codersdk.PresetParameter](#codersdkpresetparameter) | false | | |

View File

@ -2911,6 +2911,7 @@ curl -X GET http://coder-server:8080/api/v2/templateversions/{templateversion}/p
```json
[
{
"default": true,
"id": "string",
"name": "string",
"parameters": [
@ -2933,14 +2934,15 @@ curl -X GET http://coder-server:8080/api/v2/templateversions/{templateversion}/p
Status Code **200**
| Name | Type | Required | Restrictions | Description |
|----------------|--------|----------|--------------|-------------|
| `[array item]` | array | false | | |
| id` | string | false | | |
| name` | string | false | | |
| parameters` | array | false | | |
| » name` | string | false | | |
| `»» value` | string | false | | |
| Name | Type | Required | Restrictions | Description |
|----------------|---------|----------|--------------|-------------|
| `[array item]` | array | false | | |
| default` | boolean | false | | |
| id` | string | false | | |
| name` | string | false | | |
| parameters` | array | false | | |
| `»» name` | string | false | | |
| `»» value` | string | false | | |
To perform this operation, you must be authenticated. [Learn more](authentication.md).