Skip to content
Skip to Content
Coder Docs

Update workspace automatic updates by ID

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

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspace*string

Workspace ID

Formatuuid

Request Body

Automatic updates request

application/json
  1. body
automatic_updates?codersdk.AutomaticUpdates
Value in"always""never"

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}/autoupdates" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "automatic_updates": "always"}'
Example Response204
Empty