Skip to content
Skip to Content
Coder Docs

Get template version presets

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

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

templateversion*string

Template version ID

Formatuuid

Response Body

OK

application/json
  1. response
[index: integer]?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/templateversions/{templateversion}/presets" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
[  {    "default": true,    "description": "string",    "desiredPrebuildInstances": 0,    "icon": "string",    "id": "string",    "name": "string",    "parameters": [      {        "name": "string",        "value": "string"      }    ]  }]