Skip to main content
POST
/
api
/
v1
/
unified-save
Save Unified Changes
curl --request POST \
  --url https://services.staging.app.dados.rio/eai-agent/api/v1/unified-save \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_type": "<string>",
  "prompt_content": "<string>",
  "clickup_cards": [
    {}
  ],
  "tools": [
    "<string>"
  ],
  "model_name": "<string>",
  "embedding_name": "<string>",
  "update_agents": false,
  "author": "<string>",
  "reason": "<string>"
}'
{
  "success": true,
  "unified_version_number": 123,
  "version_display": "<string>",
  "change_type": "<string>",
  "prompt_id": "<string>",
  "config_id": "<string>",
  "agents_updated": {},
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Schema para salvar alterações unificadas.

agent_type
string
required

Tipo do agente

prompt_content
string | null

Conteúdo do system prompt

clickup_cards
Clickup Cards · object[] | null

ClickUp cards

tools
string[] | null

Lista de ferramentas

model_name
string | null

Nome do modelo

embedding_name
string | null

Nome do embedding

update_agents
boolean
default:false

Atualizar agentes existentes

author
string | null

Autor da alteração

reason
string | null

Motivo da alteração

Response

Successful Response

Schema para resposta do save unificado.

success
boolean
required
unified_version_number
integer
required
version_display
string
required
change_type
string
required
message
string
required
prompt_id
string | null
config_id
string | null
agents_updated
object