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

# Update monitor

> Changes the name, trace_phrasing, or issue_phrasing (tool monitors only). Send at least one; omitted fields keep their value. A phrasing change activates a new version with that phrasing, keeps the saved formats, and supersedes pending suggestions for it. Past results stay as they are. Any other field is rejected.



## OpenAPI

````yaml https://api.uselemma.ai/openapi.json patch /projects/{project_id}/monitors/{monitor_id}
openapi: 3.1.0
info:
  title: Lemma Platform API
  description: Lemma Platform HTTP API for AI observability and workspace operations.
  version: 0.1.0
servers:
  - url: https://api.uselemma.ai
    description: Lemma production API
security:
  - bearerAuth: []
paths:
  /projects/{project_id}/monitors/{monitor_id}:
    patch:
      tags:
        - Monitors
      summary: Update monitor
      description: >-
        Changes the name, trace_phrasing, or issue_phrasing (tool monitors
        only). Send at least one; omitted fields keep their value. A phrasing
        change activates a new version with that phrasing, keeps the saved
        formats, and supersedes pending suggestions for it. Past results stay as
        they are. Any other field is rejected.
      operationId: update_monitor
      parameters:
        - name: project_id
          in: path
          required: true
          description: Project ID.
          schema:
            type: string
        - name: monitor_id
          in: path
          required: true
          description: Monitor ID.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                trace_phrasing:
                  type: string
                  minLength: 1
                issue_phrasing:
                  type: string
                  minLength: 1
              additionalProperties: false
      responses:
        '200':
          description: Updated monitor
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  project_id:
                    type: string
                    format: uuid
                  kind:
                    type: string
                    enum:
                      - signal
                      - tool
                  name:
                    type: string
                  exploration_status:
                    type: string
                    enum:
                      - learning
                      - backfilling
                      - ready
                      - failed
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - id
                  - project_id
                  - kind
                  - name
                  - exploration_status
                  - created_at
                  - updated_at
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
        '404':
          description: Not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                  code:
                    type: string
                required:
                  - detail
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

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