> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# UnblockMember

# Package: membersV2

# Namespace: MemberToMemberBlocks

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/unblock-member.md

## Permission Scopes:
Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS

## Introduction

Removes a block that the current member created.

This method must be called with a site member identity. A member can remove only blocks they created, not blocks other members created on them.

To block a member, call [Block Member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/block-member.md).

---

## REST API

### Schema

```
 Method: unblockMember
 Description: Removes a block that the current member created.  This method must be called with a site member identity. A member can remove only blocks they created, not blocks other members created on them.  To block a member, call [Block Member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/block-member.md).
 URL: https://www.wixapis.com/members/v1/member-to-member-blocks/members/my/{memberId}
 Method: DELETE
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  memberId
 Method parameters: 
   param name: memberId | type:   none | required: true 
 Return type: UnblockMemberResponse
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: SELF_UNBLOCKING_FORBIDDEN | Description: The current member can't unblock themselves.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: BLOCK_DOES_NOT_EXIST | Description: Couldn't find a block created by the current member on the specified member.


```

### Examples

### Unblock a member
Removes a block that the current member created.

```curl
curl -X DELETE \
'https://www.wixapis.com/members/v1/member-to-member-blocks/members/my/e411fe13-9794-42b6-ad62-72c9917f1bac' \
-H 'Authorization: <AUTH>'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.memberToMemberBlock.unblockMember(memberId)
 Description: Removes a block that the current member created.  This method must be called with a site member identity. A member can remove only blocks they created, not blocks other members created on them.  To block a member, call [Block Member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/members-v2/member-to-member-block-v1/block-member.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  memberId
 Method parameters: 
   param name: memberId | type: string | description: GUID of the member to unblock. | required: true | validation: format GUID
 Return type: PROMISE<UnblockMemberResponse>
  EMPTY-OBJECT {}

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: SELF_UNBLOCKING_FORBIDDEN | Description: The current member can't unblock themselves.
   HTTP Code: 404 | Status Code: NOT_FOUND | Application Code: BLOCK_DOES_NOT_EXIST | Description: Couldn't find a block created by the current member on the specified member.


```

### Examples

### Unblock a member
Removes a block that the current member created.

```javascript
import { memberToMemberBlock } from "@wix/members";

async function unblockMember() {
  const response = await memberToMemberBlock.unblockMember("e411fe13-9794-42b6-ad62-72c9917f1bac");
}

```

### unblockMember (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { memberToMemberBlock } from '@wix/members';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { memberToMemberBlock },
  // Include the auth strategy and host as relevant
});


async function unblockMember(memberId) {
  const response = await myWixClient.memberToMemberBlock.unblockMember(memberId);
};
```

---