POST
/
api
/
v1
/
system-prompt
Update System Prompt
curl --request POST \
  --url https://services.staging.app.dados.rio/eai-agent/api/v1/system-prompt \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_type": "agentic_search",
  "metadata": {
    "author": "admin",
    "reason": "Melhoria na resposta de emergência"
  },
  "new_prompt": "Novo conteúdo do system prompt...",
  "tags": [
    "agentic_search",
    "user_123456"
  ],
  "update_agents": true
}'
{
  "agents_updated": {
    "agt_123456789": true,
    "agt_987654321": true
  },
  "message": "System prompt atualizado com sucesso para 2 agentes.",
  "prompt_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "success": true,
  "version": 1
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Schema para requisição de atualização de system prompt.

Response

200
application/json

Successful Response

Schema para resposta da atualização de system prompt.