Computes the diff between old live and draft snapshots.
2.
Applies the draft snapshot to all runtime tables (agent, states, edges, etc.).
3.
Archives the previous live version row.
4.
Promotes the draft to a new live version with an auto-incremented version_number.
5.
Sends a publish notification email.
6.
Refreshes Redis caches.
version_notes is required and must be non-empty.
Request
Authorization
API Key
Add parameter in header
token
Example:
token: ********************
or
Path Params
Body Params application/jsonRequired
Example
{"version_notes":"Switched LLM to GPT-4o and updated Tamil greeting message."}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://staging-api.formi.co.in/v2/agents//config/model/publish' \
--header'token: <api-key>' \
--header'Content-Type: application/json' \
--data-raw'{
"version_notes": "Switched LLM to GPT-4o and updated Tamil greeting message."
}'
Responses
🟢200
application/json
Draft published successfully. Returns new live version metadata.
Body
Example
{"success":true,"message":"Published","payload":{"version_number":4,"status":"live","version_notes":"Switched LLM to GPT-4o","published_at":"2026-05-01T10:45:00+05:30","change_summary":{"changed":{"agent_configuration.LLM.conversation_llm.model_name":{"old":"gpt-4-turbo","new":"gpt-4o"}},"unchanged":["agent_name","main_prompt","connection_config"]}}}