> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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

# ReportMember

# Package: activity

# Namespace: MemberReports

# Method link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/report-member?apiView=SDK.md

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

## Introduction

Creates a report about a member, on behalf of the calling member.

The member who creates the report is identified from the call's identity, so this method must be called by a site member. The site's Wix user receives a notification about each new report.

`reason.category` is required. `reason.description` is required when `reason.category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.

A member can't report themselves, and blocked or offline members can't be reported. The site owner and site contributors can't report other members or be reported.

To delete all reports about a member, call [Delete Member Reports](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/delete-member-reports.md).

---

## REST API

### Schema

```
 Method: reportMember
 Description: Creates a report about a member, on behalf of the calling member.  The member who creates the report is identified from the call's identity, so this method must be called by a site member. The site's Wix user receives a notification about each new report.  `reason.category` is required. `reason.description` is required when `reason.category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.  A member can't report themselves, and blocked or offline members can't be reported. The site owner and site contributors can't report other members or be reported.  To delete all reports about a member, call [Delete Member Reports](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/delete-member-reports.md).
 URL: https://www.wixapis.com/members/v1/member-reports
 Method: POST
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  memberReport, memberReport.reason, memberReport.reportedMemberId
 Method parameters: 
   param name: memberReport | type: MemberReport | description: A report submitted by a member about another member. Reports help maintain community safety by allowing members to flag inappropriate behavior such as spam, harassment, or impersonation. | required: true 
        - name: reportedMemberId | type: string | description: GUID of the reported member. | required: true | validation: format GUID
        - name: reason | type: Reason | description: Reason for reporting the member. | required: true 
           - name: category | type: Category | description: Report reason category.  
                 - enum:
                 -     UNKNOWN: Unknown category.
                 -     SPAM: The member is reported for sending spam.
                 -     IMPERSONATION: The member is reported for impersonating someone else.
                 -     HARASSMENT: The member is reported for harassing other members.
                 -     OTHER: The member is reported for a reason not covered by the other categories.
           - name: description | type: string | description: Explanation of why the member is reported.  Required when `category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.  
 Return type: ReportMemberResponse
  - name: memberReport | type: MemberReport | description: Created member report.  
     - name: id | type: string | description: Report GUID.  | read-only: true | validation: format GUID
     - name: reportedMemberId | type: string | description: GUID of the reported member.  | validation: format GUID
     - name: reportingMemberId | type: string | description: GUID of the member who created the report. Set automatically to the GUID of the member who called [Report Member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/report-member.md).  | read-only: true 
     - name: reason | type: Reason | description: Reason for reporting the member.  
        - name: category | type: Category | description: Report reason category.  
             - enum:
             -     UNKNOWN: Unknown category.
             -     SPAM: The member is reported for sending spam.
             -     IMPERSONATION: The member is reported for impersonating someone else.
             -     HARASSMENT: The member is reported for harassing other members.
             -     OTHER: The member is reported for a reason not covered by the other categories.
        - name: description | type: string | description: Explanation of why the member is reported.  Required when `category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.  
     - name: createdDate | type: string | description: Date and time the report was created.  | read-only: true | validation: format date-time

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CONTRIBUTOR_REPORTING_FORBIDDEN | Description: The reported member or the reporting member is a site contributor. Site contributors can't report members or be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: OWNER_REPORTING_FORBIDDEN | Description: The reported member or the reporting member is the site owner. The site owner can't report members or be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CANNOT_REPORT_OFFLINE_MEMBER | Description: The reported member is offline. Offline members can't be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CANNOT_REPORT_BLOCKED_MEMBER | Description: The reported member is blocked. Blocked members can't be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: SELF_REPORTING_FORBIDDEN | Description: The reported member is the member who created the report. A member can't report themselves.


```

### Examples

### Report a member
```curl
curl -X POST \
'https://www.wixapis.com/members/v1/member-reports' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "memberReport": {
    "reportedMemberId": "e411fe13-9794-42b6-ad62-72c9917f1bac",
    "reason": {
      "category": "HARASSMENT",
      "description": "This member keeps sending me offensive messages."
    }
  }
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.members.memberReport.reportMember(memberReport)
 Description: Creates a report about a member, on behalf of the calling member.  The member who creates the report is identified from the call's identity, so this method must be called by a site member. The site's Wix user receives a notification about each new report.  `reason.category` is required. `reason.description` is required when `reason.category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.  A member can't report themselves, and blocked or offline members can't be reported. The site owner and site contributors can't report other members or be reported.  To delete all reports about a member, call [Delete Member Reports](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/delete-member-reports.md).
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  memberReport, memberReport.reason, memberReport.reportedMemberId
 Method parameters: 
   param name: memberReport | type: MemberReport | description: A report submitted by a member about another member. Reports help maintain community safety by allowing members to flag inappropriate behavior such as spam, harassment, or impersonation. | required: true 
        - name: reportedMemberId | type: string | description: GUID of the reported member. | required: true | validation: format GUID
        - name: reason | type: Reason | description: Reason for reporting the member. | required: true 
           - name: category | type: Category | description: Report reason category.  
                 - enum:
                 -     UNKNOWN: Unknown category.
                 -     SPAM: The member is reported for sending spam.
                 -     IMPERSONATION: The member is reported for impersonating someone else.
                 -     HARASSMENT: The member is reported for harassing other members.
                 -     OTHER: The member is reported for a reason not covered by the other categories.
           - name: description | type: string | description: Explanation of why the member is reported.  Required when `category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.  
 Return type: PROMISE<ReportMemberResponse>
  - name: memberReport | type: MemberReport | description: Created member report.  
     - name: _id | type: string | description: Report GUID.  | read-only: true | validation: format GUID
     - name: reportedMemberId | type: string | description: GUID of the reported member.  | validation: format GUID
     - name: reportingMemberId | type: string | description: GUID of the member who created the report. Set automatically to the GUID of the member who called [Report Member](https://dev.wix.com/docs/api-reference/crm/members-contacts/members/activity/member-reports/report-member.md).  | read-only: true 
     - name: reason | type: Reason | description: Reason for reporting the member.  
        - name: category | type: Category | description: Report reason category.  
             - enum:
             -     UNKNOWN: Unknown category.
             -     SPAM: The member is reported for sending spam.
             -     IMPERSONATION: The member is reported for impersonating someone else.
             -     HARASSMENT: The member is reported for harassing other members.
             -     OTHER: The member is reported for a reason not covered by the other categories.
        - name: description | type: string | description: Explanation of why the member is reported.  Required when `category` is `IMPERSONATION`, `HARASSMENT`, or `OTHER`.  
     - name: _createdDate | type: Date | description: Date and time the report was created.  | read-only: true 

 Possible Errors:
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CONTRIBUTOR_REPORTING_FORBIDDEN | Description: The reported member or the reporting member is a site contributor. Site contributors can't report members or be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: OWNER_REPORTING_FORBIDDEN | Description: The reported member or the reporting member is the site owner. The site owner can't report members or be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CANNOT_REPORT_OFFLINE_MEMBER | Description: The reported member is offline. Offline members can't be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CANNOT_REPORT_BLOCKED_MEMBER | Description: The reported member is blocked. Blocked members can't be reported.
   HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: SELF_REPORTING_FORBIDDEN | Description: The reported member is the member who created the report. A member can't report themselves.


```

### Examples

### Report a member
```javascript
import { memberReport } from "@wix/members";

async function reportMember() {
  const response = await memberReport.reportMember({
    reportedMemberId: "e411fe13-9794-42b6-ad62-72c9917f1bac",
    reason: {
      category: "HARASSMENT",
      description: "This member keeps sending me offensive messages.",
    },
  });
}

```

### reportMember (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 { memberReport } from '@wix/members';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

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


async function reportMember(memberReport) {
  const response = await myWixClient.memberReport.reportMember(memberReport);
};
```

---