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

# Update template parameter

> Update the value of a specific template parameter identified by role and parameter name.



## OpenAPI

````yaml PATCH /template_parameter/{role}/{parameter}
openapi: 3.1.0
info:
  title: DocOpsAI API
  version: 0.1.0
  description: >
    AI-based order processing application that extracts information from email
    attachments and forwards to backend systems. Provides endpoints for order
    management, customer and product CRUD, email watching, and template
    parameter configuration.
  contact:
    name: DevOps Company
servers:
  - url: https://start.aiotic.ai
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: healthcheck
    description: Service health monitoring
  - name: order
    description: Order document upload and processing
  - name: order_status
    description: Order processing status tracking
  - name: customer
    description: Customer record management with vector search
  - name: product
    description: Product record management
  - name: template_parameters
    description: Prompt template parameter management
  - name: email-watcher
    description: Email inbox monitoring and processing
paths:
  /template_parameter/{role}/{parameter}:
    patch:
      tags:
        - template_parameters
      summary: Update template parameter
      description: >-
        Update the value of a specific template parameter identified by role and
        parameter name.
      operationId: updateTemplateParameter
      parameters:
        - name: role
          in: path
          required: true
          description: Role of the template (e.g., system, assistant, user)
          schema:
            type: string
        - name: parameter
          in: path
          required: true
          description: Name of the template parameter
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateParameterUpdateRequest'
      responses:
        '200':
          description: Template parameter updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateParameter'
        '404':
          description: Template parameter not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TemplateParameterUpdateRequest:
      type: object
      required:
        - value
      properties:
        value:
          type: string
          nullable: true
          description: New value of the prompt template parameter
    TemplateParameter:
      type: object
      required:
        - role
        - parameter
        - value
      properties:
        role:
          type: string
          description: Role of the template (e.g., system, assistant, user)
        parameter:
          type: string
          description: Name of the template parameter
        value:
          type: string
          nullable: true
          description: Value of the template parameter
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: Error message describing what went wrong
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        API key for authentication. Required on all endpoints except
        /healthcheck. Customer and product endpoints also accept a
        customer-specific API key.

````