Guides

Report profile

🚧

This Request is Protected by Authentication

Report a profile with a reason.

Request

ReportProfileRequest

Invocation

import {
  ProfileReportingReason,
  ProfileReportingSpamSubreason,
} from '@lens-protocol/client';

const result = await client.profile.report({
  for: '0x01',
  reason: {
    spamReason: {
      reason: ProfileReportingReason.Spam,
      subreason: ProfileReportingSpamSubreason.Reptitive,
    },
  },
  additionalComments: 'a comment',
});
mutation ReportProfile($request: ReportProfileRequest!) {
  reportProfile(request: $request)
}

Response

Returns a Void