> 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`). > - 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.md ## Permission Scopes: Manage Members: SCOPE.DC-MEMBERS.MANAGE-MEMBERS ## Introduction Creates a report for the reported member. --- ## REST API ### Schema ``` Method: reportMember Description: Creates a report for the reported member. 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 - name: reason | type: Reason | description: Reason for reporting a member. | required: true - name: category | type: Category | description: Report reason type. - enum: - UNKNOWN: Unknown category. This value is unused. - SPAM: The member is reported for spam. - IMPERSONATION: The member is reported for impersonation. - HARASSMENT: The member is reported for harassment. - OTHER: The member is reported for other reasons. - name: description | type: string | description: Explanation of why the member is being reported. Return type: ReportMemberResponse - name: memberReport | type: MemberReport | description: Member report. - name: id | type: string | description: Report GUID. - name: reportedMemberId | type: string | description: GUID of the reported member. - name: reportingMemberId | type: string | description: GUID of the member who created the report. - name: reason | type: Reason | description: Reason for reporting a member. - name: category | type: Category | description: Report reason type. - enum: - UNKNOWN: Unknown category. This value is unused. - SPAM: The member is reported for spam. - IMPERSONATION: The member is reported for impersonation. - HARASSMENT: The member is reported for harassment. - OTHER: The member is reported for other reasons. - name: description | type: string | description: Explanation of why the member is being reported. - name: createdDate | type: string | description: Date and time the report was created. Possible Errors: HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CANNOT_REPORT_BLOCKED_MEMBER | Description: Blocked member can't be reported. HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: SELF_REPORTING_FORBIDDEN | Description: Member can't report themselves. ``` ### Examples ### Report MEMBERS ```curl curl -X POST \ https://www.wixapis.com/members/v1/member-reports \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: ' \ -d '{ "memberReport": { "reportedMemberId": "e411fe13-9794-42b6-ad62-72c9917f1bac", "reason": { "category": "OTHER", "description": "I think this user's profile info is inappropriate." } } }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.activity.MemberReports.reportMember(memberReport) Description: Creates a report for the reported member. # 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 - name: reason | type: Reason | description: Reason for reporting a member. | required: true - name: category | type: Category | description: Report reason type. - enum: - UNKNOWN: Unknown category. This value is unused. - SPAM: The member is reported for spam. - IMPERSONATION: The member is reported for impersonation. - HARASSMENT: The member is reported for harassment. - OTHER: The member is reported for other reasons. - name: description | type: string | description: Explanation of why the member is being reported. Return type: PROMISE - name: memberReport | type: MemberReport | description: Member report. - name: _id | type: string | description: Report GUID. - name: reportedMemberId | type: string | description: GUID of the reported member. - name: reportingMemberId | type: string | description: GUID of the member who created the report. - name: reason | type: Reason | description: Reason for reporting a member. - name: category | type: Category | description: Report reason type. - enum: - UNKNOWN: Unknown category. This value is unused. - SPAM: The member is reported for spam. - IMPERSONATION: The member is reported for impersonation. - HARASSMENT: The member is reported for harassment. - OTHER: The member is reported for other reasons. - name: description | type: string | description: Explanation of why the member is being reported. - name: _createdDate | type: Date | description: Date and time the report was created. Possible Errors: HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: CANNOT_REPORT_BLOCKED_MEMBER | Description: Blocked member can't be reported. HTTP Code: 400 | Status Code: INVALID_ARGUMENT | Application Code: SELF_REPORTING_FORBIDDEN | Description: Member can't report themselves. ``` ### Examples ### reportMember ```javascript import { memberReport } from '@wix/members'; async function reportMember(memberReport) { const response = await memberReport.reportMember(memberReport); }; ``` ### reportMember (self-hosted) Self-hosted 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); }; ``` ---