Skip to main content
POST
/
api
/
v1
/
agents
/
{agent_id}
/
versions
/
publish
Publish the current draft
curl --request POST \
  --url https://agents.nanonets.com/api/v1/agents/{agent_id}/versions/publish \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "agent_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "version_number": 123,
  "name": "<string>",
  "is_active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Workspace API key issued from the web app. Pass as Authorization: Bearer YOUR_API_KEY.

Path Parameters

agent_id
string<uuid>
required

UUID of the agent.

Response

Newly published version.

A single version in an agent group's history.

id
string<uuid>
required

Agent ID of this version. Use this id with /agents/{agent_id} endpoints to address this specific version.

agent_group_id
string<uuid>
required
version_number
integer
required
status
enum<string>
required

Lifecycle status of an agent version.

  • draft — work-in-progress, not yet runnable for end users
  • published — live, runnable
  • archived — superseded by a newer version
Available options:
draft,
published,
archived
name
string
required
is_active
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required