v5

latestOpenAPI 3.1.02026-08-081,0211,3082.1 MB
AI_PLAYGROUND
OPPORTUNITIES

Submit Studio Opportunity

Publish a Studio → User opportunity from an editable draft (AI-7498).

This is the SOLE publish path: the agent only proposes a draft, and this endpoint runs the full server-side gate pipeline before inserting into the ClickHouse opportunity tables. Gate failures come back as HTTP 422 with per-field {code, message} so the FE surfaces them inline on the form.

post/playground/opportunities/submit

Query parameters

navigationSourcestring nullable

Request body

session_idstring required
turn_uuidstring nullable
allow_updateboolean

Response

Successful Response

opportunity_idstring required
instance_idinteger required
already_existedboolean