Return a member to the organization default in their personal space
Drop the member's own role in their personal space, so they hold the organization's personal_space_role again (for a guest, capped to operator). Idempotent: 204 whether or not an override was set. 404 when the user is not a member of the organization. Same guard as changeMemberRole (members:change-role).
DELETE
/api/orgs/{orgId}/members/{userId}/personal-space-rolebetter-auth.session_token<token>
Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Path Parameters
orgId*string
userId*string
curl -X DELETE "https://your-instance/api/orgs/string/members/string/personal-space-role"Empty
{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/forbidden",
"title": "Forbidden",
"status": 403,
"detail": "Insufficient permissions",
"code": "forbidden",
"request_id": "req_abc123"
}{
"type": "https://docs.appstrate.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Resource not found",
"code": "not_found",
"request_id": "req_abc123"
}