Share or unshare an agent
Share or unshare an agent.
Personal access token scope: agents:write.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
id*stringID of the agent
shared*booleanShare or unshare the agent
username?stringName of the user
Success
curl -X PUT 'http://localhost:7091/api/share_agent' \ -H 'Content-Type: application/json' \ -d '{ "id": "string", "shared": true}'Rotate an agent's API key POST
Rotate an agent's API key. The previous key is invalidated immediately and a fresh key is returned once. Historical logging and usage records are re-pointed to the new key so analytics stay intact. Owner only. [Personal access token](/API/personal-access-tokens) scope: `agents:keys`.
Update an existing agent PUT
Update an existing agent. JSON or multipart (multipart for an image). 200 {success, id, message, image, key (when first published), workflow_id (workflow agents)}. A workflow agent may send workflow_graph to write its next graph version in the same transaction (or create its workflow); confirm_sponsor covers the agent's and the graph's resources. Publishing a draft without a graph validates the stored one. [Personal access token](/API/personal-access-tokens) scope: `agents:write`.