> ## 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.

# Update Report Reason

> Update a hub-scoped report reason's label, position, or active status.

Returns 403 when trying to modify a platform-default reason.
Returns 404 when the reason does not exist.
Returns 422 when the new label already exists for this hub.



## OpenAPI

````yaml /openapi/mio-openapi.json patch /api/v1/admin/teams/{team_id}/hubs/{hub_id}/report-reasons/{reason_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}/report-reasons/{reason_id}:
    patch:
      tags:
        - community-moderation-admin
      summary: Update Report Reason
      description: |-
        Update a hub-scoped report reason's label, position, or active status.

        Returns 403 when trying to modify a platform-default reason.
        Returns 404 when the reason does not exist.
        Returns 422 when the new label already exists for this hub.
      operationId: >-
        community_moderation_admin.patch_community_moderation_admin_patch_admin_teams_by_team_id_hubs_by_hub_id_report_reasons_by_reason_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: reason_id
          required: true
          schema:
            title: Reason Id
            type: string
      requestBody:
        content:
          application/vnd.api+json:
            schema:
              $ref: '#/components/schemas/ReportReasonUpdateBody'
        required: true
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/ReportReasonResponse'
          description: Successful Response
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    ReportReasonUpdateBody:
      properties:
        data:
          $ref: '#/components/schemas/ReportReasonUpdateData'
      required:
        - data
      title: ReportReasonUpdateBody
      type: object
    ReportReasonResponse:
      properties:
        data:
          $ref: '#/components/schemas/ReportReasonResource'
      required:
        - data
      title: ReportReasonResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ReportReasonUpdateData:
      properties:
        attributes:
          $ref: '#/components/schemas/ReportReasonUpdateAttributes'
        id:
          title: Id
          type: string
        type:
          const: report_reasons
          default: report_reasons
          title: Type
          type: string
      required:
        - id
        - attributes
      title: ReportReasonUpdateData
      type: object
    ReportReasonResource:
      properties:
        attributes:
          $ref: '#/components/schemas/ReportReasonAttributes'
        id:
          title: Id
          type: string
        type:
          const: report_reasons
          default: report_reasons
          title: Type
          type: string
      required:
        - id
        - attributes
      title: ReportReasonResource
      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
    ReportReasonUpdateAttributes:
      properties:
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
        label:
          anyOf:
            - maxLength: 80
              minLength: 1
              type: string
            - type: 'null'
          title: Label
        position:
          anyOf:
            - maximum: 2147483647
              minimum: 0
              type: integer
            - type: 'null'
          title: Position
      title: ReportReasonUpdateAttributes
      type: object
    ReportReasonAttributes:
      properties:
        hub_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Hub Id
        is_active:
          default: true
          title: Is Active
          type: boolean
        label:
          maxLength: 80
          minLength: 1
          title: Label
          type: string
        position:
          default: 0
          title: Position
          type: integer
      required:
        - label
        - hub_id
      title: ReportReasonAttributes
      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

````