Update chat workspace time to live
PUT
CoderSessionTokenheader
Coder-Session-Token<token>Request body
application/json- body
workspace_ttl_ms?integerWorkspaceTTLMillis is the workspace TTL in milliseconds. Zero means disabled; the template's own autostop setting applies.
No Content
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PUT \ "$CODER_URL/api/v2/chats/config/workspace-ttl" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "workspace_ttl_ms": 0}'Example Response204
Empty