Replaces the agent’s current flow_config with the contents of a previously-saved
version. The current state stays in version history (every save creates a snapshot,
deduped by content hash) so you can always restore back to it later.
Validation:
type='flow').version_id must reference a row from GET /agents/:id/flow/versions for the
same agent.Required scope: agents:update.
Replaces a flow agent’s currentDocumentation Index
Fetch the complete documentation index at: https://docs.goyappr.com/llms.txt
Use this file to discover all available pages before exploring further.
flow_config with the contents of a previously-saved version. Useful when a recent change broke the flow and you want to go back to a known-good state without manually rebuilding.
Required scope: agents:update (same as PATCH /agents/:id).
flow_versions (deduped by content hash, so re-saving the same graph doesn’t create redundant rows). Calling restore:
version_idagents.flow_config to that row’s stored contentflow_versions row reflecting the restored state — but if the restored content equals the current head (you’re restoring to where you already are), the unique constraint silently swallows it. No history pollution.GET /agents/:id/flow/versions → pick a version_idPOST /agents/:id/flow/restore with { "version_id": "..." }GET /agents/:id and inspect flow_configtype='flow'). Restoring on a prompt agent returns 400.version_id must belong to the agent named in the path. Cross-agent version ids return 404.| HTTP | Code | When |
|---|---|---|
| 400 | — | version_id missing or not a valid UUID. |
| 400 | — | Agent in the path is not a flow agent (type is prompt). |
| 404 | — | Agent id does not exist (or is not visible to the calling company). |
| 404 | — | version_id does not exist, belongs to a different agent, or has been pruned. |
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys.
Id from GET /agents/:id/flow/versions[].id.
Restored. Returns the updated agent (same shape as PATCH /agents/:id).