intelligence-ddd
Intelligence

Create Qa Session

Create a new Q&A session.

TECH-570: Now supports two session scopes:

  • asset: Traditional single-database Q&A (asset_id required)
  • company: Cross-database Q&A across all company databases (asset_id must be None)

Args: asset_id: Asset UUID from query parameter (required for asset scope) request: Session creation details including scope current_user: Authenticated user from dependency qa_service: Q&A service instance

Returns: StandardResponse with created session data

post/api/v1/intelligence/qa/sessions

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/intelligence/qa/sessions
  • Auth: none declared

Query parameters

asset_idstring uuid nullable

Asset UUID for asset-scoped sessions (required unless scope=company)

Headers

Authorizationstring

Request body

titlestring nullable

Session title

visibility'private' | 'team' | 'public'

Session visibility options.

team_idinteger nullable

Team ID for team sessions

scope'asset' | 'company'

Session scope options.

TECH-570: Controls whether Q&A searches single asset or all company assets.

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.