Publish a new brain version
POST/v1/brains/:brain_id/publish
Creates a new brain version, waits for training, and updates rules to use it. Permissions - brains.write. API keys - manage.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Brain version published successfully and rules updated
Cannot publish - validation failed (e.g., not a draft brain, version limit reached, or old version has active sessions).
Code brain_not_servable: the trained version cannot answer messages because it has no intent with
example phrases, or no dialog, webhook or MCP server. The version is removed and rules are not changed.
Add the missing content to the draft, then publish again. Training again without changes does not help.
Unauthorized
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789The specified resource was not found
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789Internal Server Error
Response Headers
Unique identifier for the API request, useful for debugging and tracking.
abc123xyz789