Change a member's role
View as MarkdownPOST
/v1/workspaces/{workspaceId}/members/{userId}/roleOwners and admins can change roles. Only the owner can demote an admin. Making someone a guest removes them from every teamspace; they keep pages shared with them directly.
curl -X POST "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA/members/kG7qL2m9XzP4tR8w/role" \
-H "Authorization: Bearer $LYDIE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"role": "admin"
}'Path parameters
Body
One of
adminmemberguest
Response
{
"id": "string",
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"userId": "kG7qL2m9XzP4tR8w",
"role": "owner",
"name": "Notes",
"email": "ada@example.com",
"image": null,
"createdAt": "2026-11-12T09:30:00.000Z"
}Errors use one envelope for every endpoint. See Errors and versions.