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

# Update post-call questions

> Update agent post-call questions in a single request. If an item has no ID, a new post-call question will be created. Only description can be updated. Maximum 50 questions per batch.



## OpenAPI

````yaml /api-reference-v1/openapi.json patch /v1/agents/{agent_id}/post-call-questions
openapi: 3.1.0
info:
  title: Rounded API
  description: Rounded API
  version: 1.0.0
servers:
  - url: https://api.callrounded.com
security:
  - ApiKeyHeader: []
paths:
  /v1/agents/{agent_id}/post-call-questions:
    patch:
      tags:
        - post-call-questions
      summary: Update post-call questions
      description: >-
        Update agent post-call questions in a single request. If an item has no
        ID, a new post-call question will be created. Only description can be
        updated. Maximum 50 questions per batch.
      operationId: >-
        batch_create_update_post_call_questions_v1_agents__agent_id__post_call_questions_patch
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            description: Agent ID
            title: Agent Id
          description: Agent ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostCallQuestionBatchRequest'
      responses:
        '200':
          description: Successfully processed post-call questions batch
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostCallQuestionBatchApiResponse-Input'
          headers:
            ratelimit-limit:
              description: The number of requests allowed in the current rate limit period
              schema:
                type: integer
            ratelimit-remaining:
              description: >-
                The number of requests remaining in the current rate limit
                period
              schema:
                type: integer
            x-ratelimit-limit-minute:
              description: >-
                The number of requests allowed in the current minute window, if
                rate limit is set to minutes.
              schema:
                type: integer
            x-ratelimit-remaining-minute:
              description: >-
                The number of requests remaining in the current minute window,
                if rate limit is set to minutes.
              schema:
                type: integer
            x-ratelimit-limit-hour:
              description: >-
                The number of requests allowed in the current hour window, if
                rate limit is set to hourly.
              schema:
                type: integer
            x-ratelimit-remaining-hour:
              description: >-
                The number of requests remaining in the current hour window, if
                rate limit is set to hourly.
              schema:
                type: integer
            x-ratelimit-limit-<seconds>:
              description: >-
                The number of requests allowed in the current <seconds> window,
                where <seconds> is the number of seconds, if rate limit is set
                to seconds.
              schema:
                type: integer
            x-ratelimit-remaining-<seconds>:
              description: >-
                The number of requests remaining in the current <seconds>
                window, where <seconds> is the number of seconds, if rate limit
                is set to seconds.
              schema:
                type: integer
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              example:
                error:
                  message: Bad request
                  type: api_error
                  status: 400
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              examples:
                auth_error:
                  summary: Error from the API Service
                  value:
                    message: Unauthorized
                    type: auth_error
                    status: 401
                gateway_error:
                  summary: Error from the API Gateway
                  value:
                    message: Unauthorized
                    type: gateway_auth_error
                    status: 401
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              example:
                error:
                  message: Access forbidden
                  type: api_error
                  status: 403
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              example:
                error:
                  message: The request endpoint does not exist
                  type: http_error
                  status: 404
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              example:
                error:
                  message: Invalid request body
                  type: validation_error
                  status: 422
                  details:
                    - field: email
                      message: Invalid email format
        '429':
          description: Rate Limit Exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              example:
                error:
                  message: API rate limit exceeded
                  type: gateway_rate_limit_error
                  status: 429
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiResponseError'
              example:
                error:
                  message: An unexpected error occurred
                  type: generic_error
                  status: 500
components:
  schemas:
    PostCallQuestionBatchRequest:
      properties:
        questions:
          items:
            $ref: '#/components/schemas/PostCallQuestionBatchItem'
          type: array
          maxItems: 50
          minItems: 1
          title: Questions
          description: List of questions to create/update
      type: object
      required:
        - questions
      title: PostCallQuestionBatchRequest
      description: Schema for batch create/update requests.
    PostCallQuestionBatchApiResponse-Input:
      properties:
        message:
          type: string
          title: Message
        data:
          $ref: '#/components/schemas/PostCallQuestionBatchResponse-Input'
        error:
          anyOf:
            - $ref: '#/components/schemas/ApiResponseError'
            - type: 'null'
        status:
          type: integer
          title: Status
          description: HTTP status code of the response.
          default: 200
      type: object
      required:
        - message
        - data
      title: PostCallQuestionBatchApiResponse
      description: Batch create/update post-call questions API response.
    ApiResponseError:
      properties:
        message:
          type: string
          title: Message
        type:
          type: string
          title: Type
        status:
          type: integer
          title: Status
        details:
          anyOf:
            - items:
                $ref: '#/components/schemas/ApiResponseErrorDetail'
              type: array
            - type: 'null'
          title: Details
      type: object
      required:
        - message
        - type
        - status
      title: ApiResponseError
      example:
        details:
          - field: email
            message: Invalid email format
        message: An error occurred while processing your request
        status: 400
        type: generic_error
    PostCallQuestionBatchItem:
      properties:
        id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Id
          description: Question ID (for updates only)
        name:
          type: string
          minLength: 1
          title: Name
          description: Question name
        description:
          type: string
          minLength: 1
          title: Description
          description: Question description (prompt)
        type:
          type: string
          title: Type
          description: 'Question type: text, boolean, number, selector, multi_selector'
        optional:
          type: boolean
          title: Optional
          description: Whether the question is optional
          default: false
        model:
          anyOf:
            - $ref: '#/components/schemas/ModelType'
            - type: 'null'
          description: Model type for the question
        examples:
          anyOf:
            - items:
                type: string
              type: array
              maxItems: 10
            - type: 'null'
          title: Examples
          description: Examples for text questions
        options:
          anyOf:
            - items:
                $ref: '#/components/schemas/PostCallQuestionOptionInput'
              type: array
            - type: 'null'
          title: Options
          description: Options for selector questions
      type: object
      required:
        - name
        - description
        - type
      title: PostCallQuestionBatchItem
      description: Schema for batch create/update operations.
    PostCallQuestionBatchResponse-Input:
      properties:
        created:
          items:
            $ref: '#/components/schemas/PostCallQuestionResponse'
          type: array
          title: Created
          description: Successfully created questions
        updated:
          items:
            $ref: '#/components/schemas/PostCallQuestionResponse'
          type: array
          title: Updated
          description: Successfully updated questions
        errors:
          items:
            type: object
          type: array
          title: Errors
          description: Errors that occurred during processing
      type: object
      title: PostCallQuestionBatchResponse
      description: Response schema for batch operations.
    ApiResponseErrorDetail:
      properties:
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
        message:
          type: string
          title: Message
      type: object
      required:
        - message
      title: ApiResponseErrorDetail
    ModelType:
      type: string
      enum:
        - gpt-3.5-turbo
        - gpt-4
        - gpt-4o
        - gpt-4o-mini
        - gpt-4.1
        - gpt-4.1-mini
        - gpt-4.1-nano
        - gpt-5
        - gpt-5-mini
        - gpt-5-nano
        - gemini-1.5-flash
        - gemini-2.0-flash
        - gemini-2.0-flash-lite
        - gemini-2.5-flash
        - gemini-2.5-flash-lite
        - gemini-2.5-pro
        - mistral-large-latest
        - mistral-small-latest
      title: ModelType
    PostCallQuestionOptionInput:
      properties:
        value:
          type: string
          minLength: 1
          title: Value
          description: Option value
        option_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Option Id
          description: Optional existing option ID
      type: object
      required:
        - value
      title: PostCallQuestionOptionInput
      description: Input schema for post-call question options.
    PostCallQuestionResponse:
      properties:
        name:
          type: string
          minLength: 1
          title: Name
          description: Question name
        description:
          type: string
          minLength: 1
          title: Description
          description: Question description
        optional:
          type: boolean
          title: Optional
          description: Whether the question is optional
          default: false
        model:
          anyOf:
            - $ref: '#/components/schemas/ModelType'
            - type: 'null'
          description: Model type for the question
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the question.
          examples:
            - 123e4567-e89b-12d3-a456-426614174000
        agent_id:
          type: string
          format: uuid
          title: Agent Id
          description: ID of the agent this question belongs to.
          examples:
            - 123e4567-e89b-12d3-a456-426614174001
        type:
          type: string
          title: Type
          description: |-
            The type of answer expected for this question.

            Possible values:
            - `text` - Free-form text answer
            - `boolean` - Yes/No answer
            - `number` - Numeric answer
            - `selector` - Single choice from predefined options
            - `multi_selector` - Multiple choices from predefined options
          examples:
            - text
            - boolean
            - number
            - selector
            - multi_selector
        is_active:
          type: boolean
          title: Is Active
          description: Whether this question is currently active.
          examples:
            - true
            - false
        question_origin:
          $ref: '#/components/schemas/PostCallQuestionOrigin'
          description: |-
            The origin of the question.

            Possible values:
            - `system` - Built-in system question
            - `custom` - User-defined custom question
          examples:
            - system
            - custom
        options:
          anyOf:
            - items:
                $ref: '#/components/schemas/PostCallQuestionOptionResponse'
              type: array
            - type: 'null'
          title: Options
          description: Available options for selector/multi_selector type questions.
        examples:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Examples
          description: Example answers for text type questions.
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the question was created.
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: Timestamp when the question was last updated.
      type: object
      required:
        - name
        - description
        - id
        - agent_id
        - type
        - is_active
        - question_origin
        - created_at
        - updated_at
      title: PostCallQuestionResponse
      description: Response schema for post-call questions.
    PostCallQuestionOrigin:
      type: string
      enum:
        - system
        - custom
      title: PostCallQuestionOrigin
    PostCallQuestionOptionResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the option.
          examples:
            - 123e4567-e89b-12d3-a456-426614174000
        value:
          type: string
          title: Value
          description: The text value of the option.
          examples:
            - Very Satisfied
            - Satisfied
            - Neutral
        created_at:
          type: string
          format: date-time
          title: Created At
          description: Timestamp when the option was created.
      type: object
      required:
        - id
        - value
        - created_at
      title: PostCallQuestionOptionResponse
      description: Response schema for post-call question options.
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        The API Key created in [Rounded Studio](https://app.callrounded.com).

        - You can create it by going to the "API Keys" settings of your profile.

        - Need help? You can email us at
        [team@callrounded.com](mailto:team@callrounded.com) or join our [Discord
        community](https://discord.gg/en537j5z75).

````