Skip to main content

Replace User Workspaces Relations

PUT/user/{id}/workspaces

Replaces all workspace relations associated with a user. Passing an empty array removes all existing workspace relations.

Path Parameters
idstringrequired
UUID of the user.
Error Responses
400
Workspace not found, user account inactive, group not found, or invalid group type.
402
User seat limit exceeded.
403
External API disabled, missing EXTERNAL_API license, or invalid Authorization token.
404
User not found.
500
Internal server error (e.g. invalid enum values in request body).
Request
curl -X PUT "https://{your-domain}/api/ext/user/{id}/workspaces" -H "Authorization: Basic <access_token>" -H "Content-Type: application/json" -d '{}'

Response: 200