Update workspace sharing settings for organization
PATCH
CoderSessionTokenheader
Coder-Session-Token<token>organization*stringOrganization ID
Format
uuidWorkspace sharing settings
application/json- body
shareable_workspace_owners?stringShareableWorkspaceOwners controls whose workspaces can be shared within the organization.
Value in
"none""everyone""service_accounts"sharing_disabled?booleanSharingDisabled is deprecated and left for backward compatibility
purposes.
Deprecated: use ShareableWorkspaceOwners instead
OK
application/json- response
shareable_workspace_owners?stringShareableWorkspaceOwners controls whose workspaces can be shared within the organization.
Value in
"none""everyone""service_accounts"sharing_disabled?booleanSharingDisabled is deprecated and left for backward compatibility
purposes.
Deprecated: use ShareableWorkspaceOwners instead
sharing_globally_disabled?booleanSharingGloballyDisabled is true if sharing has been disabled for this organization because of a deployment-wide setting.
The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.
curl -X PATCH \ "$CODER_URL/api/v2/organizations/{organization}/settings/workspace-sharing" \ -H "Coder-Session-Token: $CODER_SESSION_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "shareable_workspace_owners": "none", "sharing_disabled": true}'Example Response200
{ "shareable_workspace_owners": "none", "sharing_disabled": true, "sharing_globally_disabled": true}