Unarchive template version
POST
CoderSessionTokenheader
Coder-Session-Token<token>templateversion*stringTemplate version ID
Format
uuidOK
application/json- response
detail?stringDetail is a debug message that provides further insight into why the action failed. This information can be technical and a regular golang err.Error() text.
- "database: too many open connections"
- "stat: too many open files"
message?stringMessage is an actionable message that depicts actions the request took. These messages should be fully formed sentences with proper punctuation. Examples:
- "A user has been created."
- "Failed to create a user."
validations?array<>Validations are form field-specific friendly error messages. They will be shown on a form field in the UI. These can also be used to add additional context if there is a set of errors in the primary 'Message'.
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X POST \ "$CODER_URL/api/v2/templateversions/{templateversion}/unarchive" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN"Example Response200
{ "detail": "string", "message": "string", "validations": [ { "detail": "string", "field": "string" } ]}