Skip to content
Skip to Content
Coder Docs

Templates

Endpoints

Get templates by organization GET

/api/v2/organizations/{organization}/templates Returns a list of templates for the specified organization.

Create template by organization POST

/api/v2/organizations/{organization}/templates

Get templates by organization and template name GET

/api/v2/organizations/{organization}/templates/{templatename}

Get template version by organization, template, and name GET

/api/v2/organizations/{organization}/templates/{templatename}/versions/{templateversionname}

Get previous template version by organization, template, and name GET

/api/v2/organizations/{organization}/templates/{templatename}/versions/{templateversionname}/previous

Create template version by organization POST

/api/v2/organizations/{organization}/templateversions

Get all templates GET

/api/v2/templates Returns a list of templates.

Get template examples GET

/api/v2/templates/examples

Get template settings by ID GET

/api/v2/templates/{template}

Delete template by ID DELETE

/api/v2/templates/{template}

Update template settings by ID PATCH

/api/v2/templates/{template}

Get template DAUs by ID GET

/api/v2/templates/{template}/daus

List template versions by template ID GET

/api/v2/templates/{template}/versions

Update active template version by template ID PATCH

/api/v2/templates/{template}/versions

Archive template unused versions by template id POST

/api/v2/templates/{template}/versions/archive

Get template version by template ID and name GET

/api/v2/templates/{template}/versions/{templateversionname}

Get template version by ID GET

/api/v2/templateversions/{templateversion}

Patch template version by ID PATCH

/api/v2/templateversions/{templateversion}

Archive template version POST

/api/v2/templateversions/{templateversion}/archive

Cancel template version by ID PATCH

/api/v2/templateversions/{templateversion}/cancel

Create template version dry-run POST

/api/v2/templateversions/{templateversion}/dry-run

Get template version dry-run by job ID GET

/api/v2/templateversions/{templateversion}/dry-run/{jobID}

Cancel template version dry-run by job ID PATCH

/api/v2/templateversions/{templateversion}/dry-run/{jobID}/cancel

Get template version dry-run logs by job ID GET

/api/v2/templateversions/{templateversion}/dry-run/{jobID}/logs

Get template version dry-run matched provisioners GET

/api/v2/templateversions/{templateversion}/dry-run/{jobID}/matched-provisioners

Get template version dry-run resources by job ID GET

/api/v2/templateversions/{templateversion}/dry-run/{jobID}/resources

Open dynamic parameters WebSocket by template version GET

/api/v2/templateversions/{templateversion}/dynamic-parameters

Evaluate dynamic parameters for template version POST

/api/v2/templateversions/{templateversion}/dynamic-parameters/evaluate

Get external auth by template version GET

/api/v2/templateversions/{templateversion}/external-auth

Get logs by template version GET

/api/v2/templateversions/{templateversion}/logs

Removed: Get parameters by template version GET

/api/v2/templateversions/{templateversion}/parameters

Get template version presets GET

/api/v2/templateversions/{templateversion}/presets

Get resources by template version GET

/api/v2/templateversions/{templateversion}/resources

Get rich parameters by template version GET

/api/v2/templateversions/{templateversion}/rich-parameters

Removed: Get schema by template version GET

/api/v2/templateversions/{templateversion}/schema

Unarchive template version POST

/api/v2/templateversions/{templateversion}/unarchive

Get template variables by template version GET

/api/v2/templateversions/{templateversion}/variables

Get template examples by organization GET Deprecated endpoint

/api/v2/organizations/{organization}/templates/examples