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

# Save Unified Changes

> Salva alterações unificadas em prompt e/ou configuração em uma única versão.

Returns:
    UnifiedSaveResponse: Resultado da operação



## OpenAPI

````yaml https://services.staging.app.dados.rio/eai-agent/openapi.json post /api/v1/unified-save
openapi: 3.1.0
info:
  title: Agentic Search API
  description: >-
    API que gerencia os fluxos e ferramentas dos agentes de IA da Prefeitura do
    Rio de Janeiro
  version: 0.1.0
servers:
  - url: https://services.staging.app.dados.rio/eai-agent
    description: Staging
security: []
paths:
  /api/v1/unified-save:
    post:
      tags:
        - Unified Save
      summary: Save Unified Changes
      description: >-
        Salva alterações unificadas em prompt e/ou configuração em uma única
        versão.


        Returns:
            UnifiedSaveResponse: Resultado da operação
      operationId: save_unified_changes_api_v1_unified_save_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnifiedSaveRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnifiedSaveResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    UnifiedSaveRequest:
      properties:
        agent_type:
          type: string
          title: Agent Type
          description: Tipo do agente
        prompt_content:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Content
          description: Conteúdo do system prompt
        clickup_cards:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          title: Clickup Cards
          description: ClickUp cards
        tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tools
          description: Lista de ferramentas
        model_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Model Name
          description: Nome do modelo
        embedding_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Embedding Name
          description: Nome do embedding
        author:
          anyOf:
            - type: string
            - type: 'null'
          title: Author
          description: Autor da alteração
        reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Reason
          description: Motivo da alteração
      type: object
      required:
        - agent_type
      title: UnifiedSaveRequest
      description: Schema para salvar alterações unificadas.
    UnifiedSaveResponse:
      properties:
        success:
          type: boolean
          title: Success
        unified_version_number:
          type: integer
          title: Unified Version Number
        version_display:
          type: string
          title: Version Display
        change_type:
          type: string
          title: Change Type
        prompt_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Id
        config_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Config Id
        prompt_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Prompt Tokens
        prompt_tokenizer:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Tokenizer
        message:
          type: string
          title: Message
      type: object
      required:
        - success
        - unified_version_number
        - version_display
        - change_type
        - message
      title: UnifiedSaveResponse
      description: Schema para resposta do save unificado.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````