Resolido Docs
Ai agents

Edit prompts (find & replace)

POST
/agents/prompt-edits

Find-and-replace in the instructions (system prompt) of several agents at once, without sending whole prompts. All edits apply to all targeted agents, or nothing changes. Saves a prompt version for each changed agent. Owner/admin.

Authorization

bearer agents:write
headerAuthorizationBearer <token>

API key (rsl_live_…) from Settings → Developers.

Scope: agents:write

Request Body

application/json
  1. body
agentIds?array<>

Agents to edit; omit for all agents of the organization.

Itemsitems <= 100
edits*array<>
Items1 <= items <= 50
dryRun?boolean

Only report what would change (previews, problems).

Defaultfalse
expectedUpdatedAt?array<>

Version check (updatedAt from agents_prompt_search or agents_get): nothing changes if an agent was edited meanwhile.

Itemsitems <= 100

Response Body

Success

application/json
  1. response
applied*boolean
problems*array<>
agents*array<>
curl -X POST "https://example.com/agents/prompt-edits" \  -H "Content-Type: application/json" \  -d '{    "edits": [      {        "find": "string",        "replace": "string"      }    ]  }'
{  "applied": true,  "problems": [    {      "target": "string",      "edit": 0,      "reason": "not_found",      "count": 0    }  ],  "agents": [    {      "agentId": "string",      "name": "string",      "changed": true,      "fromLength": 0,      "toLength": 0,      "updatedAt": 0,      "previews": [        {          "edit": 0,          "before": "string",          "after": "string"        }      ]    }  ]}