feat: create a workspace from any template version (#9471)

This commit is contained in:
Kayla Washburn
2023-08-31 15:07:58 -06:00
committed by GitHub
parent 796a9754a9
commit eded7a4b88
8 changed files with 121 additions and 17 deletions

11
coderd/apidoc/docs.go generated
View File

@ -7715,8 +7715,7 @@ const docTemplate = `{
"codersdk.CreateWorkspaceRequest": {
"type": "object",
"required": [
"name",
"template_id"
"name"
],
"properties": {
"autostart_schedule": {
@ -7726,13 +7725,19 @@ const docTemplate = `{
"type": "string"
},
"rich_parameter_values": {
"description": "ParameterValues allows for additional parameters to be provided\nduring the initial provision.",
"description": "RichParameterValues allows for additional parameters to be provided\nduring the initial provision.",
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.WorkspaceBuildParameter"
}
},
"template_id": {
"description": "TemplateID specifies which template should be used for creating the workspace.",
"type": "string",
"format": "uuid"
},
"template_version_id": {
"description": "TemplateVersionID can be used to specify a specific version of a template for creating the workspace.",
"type": "string",
"format": "uuid"
},