Skip to content

Set Default Workspace

POST/web/v1/users/self/workspaces/{workspaceBizId}/defaultJWT

Sets the specified workspace as the user's default workspace.

Authentication

Auth Chain: WEB Chain — requires Authorization: Bearer <jwt> System-injected headers (frontend does nothing): X-PORTAL-ACCESS-CODE (Nginx), X-Request-Id (Gateway)

Request Parameters

NameTypeRequiredInDescription
workspaceBizIdStringYespathBusiness ID of the workspace

Success Response

Success200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": {}
}

Error Responses

Unauthorized401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}

Notes

  • This endpoint operates on the authenticated user's own resources.

Internal Documentation