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

# Update a resolution criterion



## OpenAPI

````yaml /openapi.json patch /api/agents/{id}/resolution-criteria/{criterionId}
openapi: 3.0.0
info:
  title: GoMobile Backend API
  description: >-
    API documentation for GoMobile telephony platform - automated calling
    campaigns, interactive voice flows, and call management
  version: '1.0'
  contact: {}
servers:
  - url: http://localhost:3000
    description: Local Development
security: []
tags:
  - name: Organizations
    description: Multi-tenant organization management
  - name: Teams
    description: Team structure and hierarchy
  - name: Contacts
    description: Customer contact management (CRM)
  - name: Entities
    description: Business entities management
  - name: Audiences
    description: Contact segmentation and groups
  - name: Programs
    description: Call campaign configuration
  - name: Call Flows
    description: Interactive call flow builder
paths:
  /api/agents/{id}/resolution-criteria/{criterionId}:
    patch:
      tags:
        - Agent Studio
      summary: Update a resolution criterion
      operationId: AgentStudioController_updateResolutionCriterion
      parameters:
        - name: id
          required: true
          in: path
          description: Agent ID
          schema:
            type: string
        - name: criterionId
          required: true
          in: path
          description: Criterion ID
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateResolutionCriterionDto'
      responses:
        '200':
          description: Resolution criterion updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolutionCriterionResponseDto'
        '404':
          description: Criterion not found
      security:
        - bearer: []
components:
  schemas:
    UpdateResolutionCriterionDto:
      type: object
      properties:
        label:
          type: string
          description: Short label for the resolution criterion
          example: Customer confirms payment date
          maxLength: 255
        description:
          type: string
          description: Detailed description of what constitutes meeting this criterion
    ResolutionCriterionResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Criterion ID
        agentId:
          type: string
          description: Agent ID
        label:
          type: string
          description: Label
        description:
          type: string
          description: Description
        position:
          type: number
          description: Display position
        createdAt:
          format: date-time
          type: string
          description: Created at
        updatedAt:
          format: date-time
          type: string
          description: Updated at
      required:
        - id
        - agentId
        - label
        - description
        - position
        - createdAt
        - updatedAt
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````