Update workspace build state
PUT
CoderSessionTokenheader
Coder-Session-Token<token>workspacebuild*stringWorkspace build ID
Format
uuidRequest body
application/json- body
state?array<integer>No Content
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PUT \ "$CODER_URL/api/v2/workspacebuilds/{workspacebuild}/state" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "state": [ 0 ]}'Example Response204
Empty