authed
Edit an agent as a draft
Save an edit to an agent's configuration as a draft revision; it isn't live until published with publish_agent_definition. Read the agent with get_agent_definition just before editing and pass its latest_revision.id as parent_revision_id and latest_revision.content_version as parent_content_version. If anyone changed the agent since that read, nothing is stored and you're told so: read it again, reapply your edit, and save again. The agent's configuration is checked the same way either way, and a refused configuration is described problem by problem.
post/api/v1/agent-definitions/{definition_id}/revisions
Request
- Base URLhttps://api.teaflask.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.teaflask.com/api/v1/agent-definitions/{definition_id}/revisions
- Authnone declared
Path parameters
definition_idstring uuid required
The agent's id, as list_agent_definitions returns it.
Request body
Response
The editor's open working draft was amended in place
Changes
No recorded changes to this operation across all 1 revision of this API.