Update workspace automatic updates by ID
PUT
CoderSessionTokenheader
Coder-Session-Token<token>workspace*stringWorkspace ID
Format
uuidAutomatic updates request
application/json- body
automatic_updates?codersdk.AutomaticUpdatesValue in
"always""never"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