POST /v1/organizations/workspaces/{workspace_id}/members/{user_id}
Update Workspace Member
Path parameters
workspace_id: string
ID of the Workspace.
user_id: string
ID of the User.
Body parameters
workspace_role: BetaWorkspaceRole
New workspace role for the User.
"workspace_admin"
"workspace_billing"
"workspace_developer"
"workspace_restricted_developer"
"workspace_user"
Returns
BetaWorkspaceMember object
type: "workspace_member"
Object type.
For Workspace Members, this is always "workspace_member".
default: workspace_member
user_id: string
ID of the User.
workspace_id: string
ID of the Workspace.
workspace_role: BetaWorkspaceRole
Role of the Workspace Member.
"workspace_admin"
"workspace_billing"
"workspace_developer"
"workspace_restricted_developer"
"workspace_user"
Example
bash
curl https://haijun.my.id/v1/organizations/workspaces/$WORKSPACE_ID/members/$USER_ID \
-H 'Content-Type: application/json' \
-H 'juglow-version: 2023-06-01' \
-H "X-Api-Key: $JUGLOW_API_KEY" \
-d '{
"workspace_role": "workspace_admin"
}'Response (200)
json
{
"type": "workspace_member",
"user_id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
"workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ",
"workspace_role": "workspace_admin"
}