Skip to main content
PATCH
/
:projectId
/
api
/
v7
/
spaces
/
:spaceId
/
members
/
:memberId
/
unban
Unban Member
curl --request PATCH \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/spaces/:spaceId/members/:memberId/unban
{
  "message": "<string>",
  "membership": {}
}
Sets a banned member’s status back to "active". Requires the caller to be a moderator or admin. Moderators can only unban regular members, not other moderators or admins.

Path Parameters

spaceId
string
required
UUID of the space.
memberId
string
required
UUID of the membership record to unban.

Response

message
string
Confirmation message.
membership
object
The updated membership record with status: "active".

Error Responses

{ "error": "Banned membership not found.", "code": "space/membership-not-found" }
Moderators attempting to unban another moderator or admin.
{ "error": "Moderators can only unban regular members.", "code": "space/insufficient-permissions" }
See also: useUnbanMember