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

# Update assessment review status



## OpenAPI

````yaml /openapi/marmar-cds.openapi.yaml patch /v1/assessments/{assessmentId}/status
openapi: 3.1.0
info:
  title: Marmar Clinical Decision Support Reference
  version: 0.1.0
  description: >
    API for integrating Marmar's medication safety assessments into clinical
    workflows. Tenants can synchronize patient records, request assessments, and
    receive webhook notifications when assessments are completed.
servers:
  - url: https://cds.marmar.life
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: Patients
  - name: Assessments
  - name: Tenants
  - name: Webhooks
  - name: FHIR
paths:
  /v1/assessments/{assessmentId}/status:
    patch:
      tags:
        - Assessments
      summary: Update assessment review status
      operationId: updateAssessmentStatus
      parameters:
        - $ref: '#/components/parameters/AssessmentIdPath'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateAssessmentStatusRequest'
      responses:
        '200':
          description: Status updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateAssessmentStatusResponse'
        '400':
          description: Invalid status value
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Assessment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
components:
  parameters:
    AssessmentIdPath:
      name: assessmentId
      in: path
      required: true
      description: Assessment identifier returned by the API.
      schema:
        type: string
        format: uuid
  schemas:
    UpdateAssessmentStatusRequest:
      type: object
      properties:
        status:
          type: string
          enum:
            - open
            - in_review
            - resolved
          description: New review status for the assessment
      required:
        - status
    UpdateAssessmentStatusResponse:
      type: object
      properties:
        assessmentId:
          $ref: '#/components/schemas/Identifier'
        status:
          type: string
          enum:
            - open
            - in_review
            - resolved
        updatedAt:
          type: string
          format: date-time
      required:
        - assessmentId
        - status
        - updatedAt
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
      required:
        - message
    Identifier:
      type: string
      format: uuid
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key obtained from the Tenant Dashboard. Use as Authorization: Bearer
        YOUR_API_KEY

````