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

# Create Report Status

> Update the status of a report

<Note>User has to be an `ADMIN` to be able to use this API.</Note>


## OpenAPI

````yaml POST /report/status
openapi: 3.0.3
info:
  title: Report API
  version: 1.0.0
  description: API for handling reports and report statuses
servers:
  - url: https://our-secret-api-url.com
security: []
paths:
  /report/status:
    post:
      description: Update the status of a report
      operationId: updateReportStatus
      parameters:
        - $ref: '#/components/parameters/X-API-KEY'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                reportId:
                  type: integer
                status:
                  type: string
                  enum:
                    - reviewing
                    - no_action
                    - suspended
                targetUserId:
                  type: integer
                targetPostId:
                  type: integer
                  nullable: true
                notes:
                  type: string
                  nullable: true
              required:
                - reportId
                - status
                - targetUserId
      responses:
        '200':
          description: Report status updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReportAction'
        '400':
          description: 'Missing required fields: reportId, status, or targetUserId'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Failed to update report status
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
      security:
        - bearerAuth: []
components:
  parameters:
    X-API-KEY:
      name: X-API-KEY
      description: API key required for authentication
      in: header
      required: true
      schema:
        type: string
  schemas:
    ReportAction:
      type: object
      properties:
        id:
          type: integer
        notes:
          type: string
          nullable: true
        reportId:
          type: integer
        actionTaken:
          type: string
          enum:
            - reviewing
            - no_action
            - suspended
        actionTakenBy:
          type: integer
        actionTakenAt:
          type: string
          format: date-time
      required:
        - id
        - reportId
        - actionTaken
        - actionTakenBy
        - actionTakenAt
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````