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

# Accept or decline a report

> Sets the report status to accepted or declined.



## OpenAPI

````yaml POST /reports/update
openapi: 3.1.0
info:
  title: Megaseo API
  version: 1.0.0
servers:
  - url: https://api-v2.megaseo.net/web
    description: Production
security: []
paths:
  /reports/update:
    post:
      tags:
        - reports
      summary: Update Report
      operationId: update_report_reports_update_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateReportRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateReportResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateReportRequest:
      properties:
        access_token:
          type: string
          title: Access Token
        report_id:
          type: integer
          maximum: 2147483647
          exclusiveMinimum: 0
          title: Report Id
        status:
          type: string
          enum:
            - accepted
            - declined
          title: Status
        reason:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: Reason
      type: object
      required:
        - access_token
        - report_id
        - status
      title: UpdateReportRequest
    UpdateReportResponse:
      properties:
        report_id:
          type: integer
          title: Report Id
        status:
          type: string
          enum:
            - accepted
            - declined
          title: Status
      type: object
      required:
        - report_id
        - status
      title: UpdateReportResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.