Place a user group in a workspace of the same tenant, or clear its place with an empty workspace_id; membership and authorization are unchanged
const url = 'https://example.com/v1/groups/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/workspace';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"workspace_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/v1/groups/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/workspace \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "workspace_id": "example" }'Places or moves a user group in a workspace of the same tenant; an explicit empty workspace_id clears placement. Requires an unconfined admin. Membership, role mapping and group hierarchy are unchanged. Business edition: a Community build answers 501 departments_unavailable.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Resource identifier (UUIDv7).
Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Request Body required
Section titled “ Request Body required ”object
The workspace of the same tenant; an empty string clears the place.
Example generated
{ "workspace_id": "example"}Responses
Section titled “ Responses ”OK
object
The workspace’s id; empty when the group is unplaced.
Example generated
{ "display_name": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "workspace_id": "example"}Bad request
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Unauthenticated
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Forbidden
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Not found
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Conflict / setup required
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Rate limited
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}