Replace an agent
PUT/agent/:id
Replaces the agent's name, description and config (send them all). agent_type and endpoint are copied from config.connection and cannot be set directly. Credentials are never stored with the agent: config.connection.api_key must be a ${VARIABLE} reference to an organization secret (see POST /secret), and a literal credential anywhere in config is refused with 400. Runs already launched keep the configuration they were launched with.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
OK
Validation error: the request is invalid and nothing was changed.
Missing, invalid, expired or revoked credential, or a credential this endpoint does not accept.
The credential may not do this (for example a run token outside its own run, or a caller without an organization), or the installation is read-only because its license is not valid (code: license_read_only).
Not found: no such object in the caller's organization.
Rate limited: retry after the number of seconds in the Retry-After header.