Create template by organization
Path parameters
Organization ID
Request body
ActivityBumpMillis allows optionally specifying the activity bump duration for all workspaces created from this template. Defaults to 1h but can be set to 0 to disable activity bumping.
AllowUserAutostart allows users to set a schedule for autostarting their workspace. By default this is true. This can only be disabled when using an enterprise license.
AllowUserAutostop allows users to set a custom workspace TTL to use in place of the template's DefaultTTL field. By default this is true. If false, the DefaultTTL will always be used. This can only be disabled when using an enterprise license.
Allow users to cancel in-progress workspace jobs. *bool as the default value is "true".
DefaultTTLMillis allows optionally specifying the default TTL for all workspaces created from this template.
TimeTilDormantAutoDeleteMillis allows optionally specifying the max lifetime before Coder permanently deletes dormant workspaces created from this template.
Description is a description of what the template contains. It must be less than 128 bytes.
DisableEveryoneGroupAccess allows optionally disabling the default behavior of granting the 'everyone' group access to use the template. If this is set to true, the template will not be available to all users, and must be explicitly granted to users or groups in the permissions settings of the template.
DisplayName is the displayed name of the template.
TimeTilDormantMillis allows optionally specifying the max lifetime before Coder locks inactive workspaces created from this template.
FailureTTLMillis allows optionally specifying the max lifetime before Coder stops all resources for failed workspaces created from this template.
Icon is a relative path or external URL that specifies an icon to be displayed in the dashboard.
Name is the name of the template.
RequireActiveVersion mandates that workspaces are built with the active template version.
UseClassicParameterFlow allows optionally specifying whether the template should use the classic parameter flow. The default if unset is true, and is why *bool is used here. When dynamic parameters becomes the default, this will default to false.
VersionID is an in-progress or completed job to use as an initial version of the template.
This is required on creation to enable a user-flow of validating a template works. There is no reason the data-model cannot support empty templates, but it doesn't make sense for users.
TimeTilAutostopNotifyMillis allows optionally specifying the duration before the autostop deadline at which a reminder notification is sent for workspaces created from this template. Defaults to 0 (disabled).
Response
OK
ActiveUserCount is set to -1 when loading.
AllowUserAutostart and AllowUserAutostop are enterprise-only. Their values are only used if your license is entitled to use the advanced template scheduling feature.
DisableModuleCache disables the use of cached Terraform modules during provisioning.
FailureTTLMillis, TimeTilDormantMillis, and TimeTilDormantAutoDeleteMillis are enterprise-only. Their values are used if your license is entitled to use the advanced template scheduling feature.
RequireActiveVersion mandates that workspaces are built with the active template version.
TimeTilAutostopNotifyMillis is the duration before the workspace's autostop deadline at which a reminder notification is sent. 0 disables the notification.