Skip to content
Skip to Content
Coder Docs

Update workspace metadata by ID

PATCH
/api/v2/workspaces/{workspace}

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspace*string

Workspace ID

Formatuuid

Request Body

Metadata update request

application/json
  1. body
name?string

Response Body

No Content

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

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