mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
docs: document workspace naming rules and restrictions (#17312)
closes #12047 [preview](https://coder.com/docs/@12047-workspace-names/user-guides/workspace-management) --------- Co-authored-by: EdwardAngert <17991901+EdwardAngert@users.noreply.github.com>
This commit is contained in:
@ -207,6 +207,13 @@ type CreateTemplateRequest struct {
|
||||
// @Description CreateWorkspaceRequest provides options for creating a new workspace.
|
||||
// @Description Only one of TemplateID or TemplateVersionID can be specified, not both.
|
||||
// @Description If TemplateID is specified, the active version of the template will be used.
|
||||
// @Description Workspace names:
|
||||
// @Description - Must start with a letter or number
|
||||
// @Description - Can only contain letters, numbers, and hyphens
|
||||
// @Description - Cannot contain spaces or special characters
|
||||
// @Description - Cannot be named `new` or `create`
|
||||
// @Description - Must be unique within your workspaces
|
||||
// @Description - Maximum length of 32 characters
|
||||
type CreateWorkspaceRequest struct {
|
||||
// TemplateID specifies which template should be used for creating the workspace.
|
||||
TemplateID uuid.UUID `json:"template_id,omitempty" validate:"required_without=TemplateVersionID,excluded_with=TemplateVersionID" format:"uuid"`
|
||||
|
Reference in New Issue
Block a user