Skip to content

Change Member Role

POST/web/v1/workspaces/{workspaceId}/members/role/change JWT

Changes the role assigned to a workspace member.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token
X-Workspace-IdTarget workspace ID

Request Parameters

NameTypeRequiredInDescription
workspaceIdStringRequiredpathBusiness ID of the workspace

Request Body

json
{
  "accountId": "ACC_ROLE_MEMBER_001",
  "workspaceRoleBizId": "ROLE_NEW_TEST_001"
}

Request Example

json
{
  "accountId": "ACC-001",
  "workspaceRoleBizId": "ROLE-002"
}

Success Response

Status: 200 OK

Success 200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2004",
  "message": "NO_CONTENT",
  "data": null
}

Error Responses

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

Notes

  • Returns response code "2004" with data: null on success.
  • The target role must exist in the same workspace.
  • Requires workspace:role:write permission.

SlaunchX Internal Documentation