Publish a draft agent as a new version
Documentation Index
Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
Use this file to discover all available pages before exploring further.
api.langdock.com with your deployment’s base URL: <deployment-url>/api/public/agent/v1/update only affect the draft. Until you call publish, those changes are not visible to workspace members.
| Parameter | Type | Required | Description |
|---|---|---|---|
agentId | string | Yes | UUID of the agent to publish |
description | string | No | Short change description shown in version history (max 100 characters) |
owner or editor access to the agent (same as Update).type=PROJECT) are not supported and will return 403.409 Conflict, mirroring the disabled “Update” button in the UI.| Status Code | Description |
|---|---|
| 400 | Invalid request body (missing or malformed agentId / description too long) |
| 401 | Invalid or missing API key |
| 403 | API key does not have edit access, the agent is in a different workspace, or the resource is a project |
| 409 | No draft changes to publish |
| 429 | Rate limit exceeded |
API key as Bearer token. Format "Bearer YOUR_API_KEY"