Skip to content
Skip to Content
Coder Docs

Invalidate presets for template

POST
/api/v2/templates/{template}/prebuilds/invalidate

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

template*string

Template ID

Formatuuid

Response Body

OK

application/json
  1. response
invalidated?array<>

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

curl -X POST \	"$CODER_URL/api/v2/templates/{template}/prebuilds/invalidate" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "invalidated": [    {      "preset_name": "string",      "template_name": "string",      "template_version_name": "string"    }  ]}