mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: allow for default presets (#18445)
This commit is contained in:
2
docs/reference/api/schemas.md
generated
2
docs/reference/api/schemas.md
generated
@ -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 | | |
|
||||
|
18
docs/reference/api/templates.md
generated
18
docs/reference/api/templates.md
generated
@ -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).
|
||||
|
||||
|
Reference in New Issue
Block a user