Update community member

PUT/manage/communities/:id/members/:memberId

Update a member's role, status and title. Approving a pending join request (PENDING → APPROVED) is also done here. Admins only.

AuthLogin required

Path parameters

idstringrequired

Community ID or slug.

memberIdstringrequired

Member ID.

Request body

rolestring

One of ADMIN / MEMBER.

statusstring

One of PENDING / APPROVED / REJECTED; approve a join request by setting APPROVED.

titlestring

Title; no length limit.

Notes

When accessed with an OAuth access token, `email` fields are recursively removed from the response JSON (they are retained for session-authenticated dashboard access).

Request
curl https://api.4s.link/manage/communities/ID/members/MEMBER_ID \
-X PUT \
-H "Authorization: Bearer 4s_at_..." \
-H "Content-Type: application/json" \
-d '{
"status": "APPROVED"
}'
Example response
{
"id": "cm1a2b3c-...",
"role": "MEMBER",
"status": "APPROVED",
"title": null,
"user": { "id": "a1b2c3d4-...", "slug": "taro", "firstName": "太郎", "lastName": "山田", "avatarUrl": "https://.../avatar.png" }
}