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)
Unauthorized
Response Headers
X-Request-Id
Unique identifier for the API request, useful for debugging and tracking.
Example:
abc123xyz789The specified resource was not found
Response Headers
X-Request-Id
Unique identifier for the API request, useful for debugging and tracking.
Example:
abc123xyz789Internal Server Error
Response Headers
X-Request-Id
Unique identifier for the API request, useful for debugging and tracking.
Example:
abc123xyz789