> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve Report

> Resolve a pending moderation report.

Accepted resolutions: dismissed | deleted | warned | banned | soft_banned.

Returns 200 + updated report on success.
Returns 404 when the report does not exist.
Returns 409 when the report has already been resolved.
Returns 422 when the resolution value is invalid.
Returns 403 when the resolution is blocked (e.g. banning the hub owner).
Returns 501 when the resolution path is not yet implemented (e.g. delete_content
         cascade, message type).



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/admin/teams/{team_id}/hubs/{hub_id}/moderation/reports/{report_id}
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/admin/teams/{team_id}/hubs/{hub_id}/moderation/reports/{report_id}:
    patch:
      tags:
        - community-moderation-admin
      summary: Resolve Report
      description: >-
        Resolve a pending moderation report.


        Accepted resolutions: dismissed | deleted | warned | banned |
        soft_banned.


        Returns 200 + updated report on success.

        Returns 404 when the report does not exist.

        Returns 409 when the report has already been resolved.

        Returns 422 when the resolution value is invalid.

        Returns 403 when the resolution is blocked (e.g. banning the hub owner).

        Returns 501 when the resolution path is not yet implemented (e.g.
        delete_content
                 cascade, message type).
      operationId: >-
        community_moderation_admin.patch_community_moderation_admin_patch_admin_teams_by_team_id_hubs_by_hub_id_moderation_reports_by_report_id
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: report_id
          required: true
          schema:
            title: Report Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/ResolveReportBody'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: >-
                  #/components/schemas/JsonApiResponse_AdminModerationReportAttributes_
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ResolveReportBody:
      properties:
        data:
          $ref: '#/components/schemas/ResolveReportData'
      required:
        - data
      title: ResolveReportBody
      type: object
    JsonApiResponse_AdminModerationReportAttributes_:
      properties:
        data:
          $ref: >-
            #/components/schemas/JsonApiResource_AdminModerationReportAttributes_
        included:
          anyOf:
            - items: {}
              type: array
            - type: 'null'
          title: Included
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - data
      title: JsonApiResponse[AdminModerationReportAttributes]
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ResolveReportData:
      properties:
        attributes:
          $ref: '#/components/schemas/ResolveReportAttributes'
        type:
          const: moderation_reports
          default: moderation_reports
          title: Type
          type: string
      required:
        - attributes
      title: ResolveReportData
      type: object
    JsonApiResource_AdminModerationReportAttributes_:
      properties:
        attributes:
          $ref: '#/components/schemas/AdminModerationReportAttributes'
        id:
          title: Id
          type: string
        links:
          anyOf:
            - $ref: '#/components/schemas/JsonApiLinks'
            - type: 'null'
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        relationships:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Relationships
        type:
          title: Type
          type: string
      required:
        - id
        - type
        - attributes
      title: JsonApiResource[AdminModerationReportAttributes]
      type: object
    JsonApiLinks:
      properties:
        self:
          anyOf:
            - type: string
            - type: 'null'
          title: Self
      title: JsonApiLinks
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    ResolveReportAttributes:
      properties:
        delete_content:
          default: false
          title: Delete Content
          type: boolean
        notes:
          anyOf:
            - maxLength: 2000
              type: string
            - type: 'null'
          title: Notes
        resolution:
          title: Resolution
          type: string
        soft_ban_until:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Soft Ban Until
      required:
        - resolution
      title: ResolveReportAttributes
      type: object
    AdminModerationReportAttributes:
      properties:
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        hub_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Hub Id
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
        reason_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason Id
        reportable_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Reportable Id
        reportable_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Reportable Type
        reporter_contact_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Reporter Contact Id
        resolution:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolution
        resolved_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved At
        resolved_by_user_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved By User Id
        status:
          anyOf:
            - type: string
            - type: 'null'
          title: Status
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
      title: AdminModerationReportAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http

````