Skip to content
Skip to Content
Coder Docs

Update workspace TTL by ID

PUT
/api/v2/workspaces/{workspace}/ttl

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspace*string

Workspace ID

Formatuuid

Request Body

Workspace TTL update request

application/json
  1. body
ttl_ms?integer

Response Body

No Content

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

curl -X PUT \	"$CODER_URL/api/v2/workspaces/{workspace}/ttl" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "ttl_ms": 0}'
Example Response204
Empty