@@ -263,10 +263,17 @@ paths:
263263 content :
264264 application/json :
265265 schema :
266- $ref : ' #/components/schemas/pipeline-study-result'
266+ $ref : ' #/components/schemas/pipeline-study-result-post'
267+ # No description here, matching base-studies pattern
267268 responses :
268269 ' 201 ' :
269270 description : Created
271+ ' 200 ' :
272+ description : OK (search results)
273+ content :
274+ application/json :
275+ schema :
276+ $ref : ' #/components/schemas/pipeline-study-result-list'
270277 /pipeline-study-results/{pipeline_study_result_id} :
271278 get :
272279 summary : GET a pipeline run result by ID
@@ -1165,7 +1172,6 @@ paths:
11651172 schema :
11661173 type : number
11671174 example : 6
1168- example : 2000
11691175 - name : year_max
11701176 in : query
11711177 description : Maximum publication year (inclusive) for study search
@@ -1447,15 +1453,6 @@ components:
14471453 $ref : ' #/components/schemas/pipeline-config'
14481454 metadata :
14491455 $ref : ' #/components/schemas/metadata'
1450- pipeline-study-result :
1451- type : object
1452- properties :
1453- id :
1454- type : string
1455- pipeline_config_id :
1456- type : string
1457- data :
1458- type : object
14591456 pipeline-study-result-list :
14601457 type : object
14611458 properties :
@@ -1465,6 +1462,44 @@ components:
14651462 $ref : ' #/components/schemas/pipeline-study-result'
14661463 metadata :
14671464 $ref : ' #/components/schemas/metadata'
1465+ pipeline-study-result-post :
1466+ oneOf :
1467+ - $ref : ' #/components/schemas/pipeline-study-result-search'
1468+ - $ref : ' #/components/schemas/pipeline-study-result'
1469+ pipeline-study-result-search :
1470+ type : object
1471+ properties :
1472+ study_ids :
1473+ type : array
1474+ items :
1475+ type : string
1476+ required :
1477+ - study_ids
1478+ pipeline-study-result :
1479+ type : object
1480+ additionalProperties : false
1481+ properties :
1482+ id :
1483+ type : string
1484+ pipeline_config_id :
1485+ type : string
1486+ base_study_id :
1487+ type : string
1488+ config_id :
1489+ type : string
1490+ date_executed :
1491+ type : string
1492+ format : date-time
1493+ file_inputs :
1494+ type : object
1495+ result_data :
1496+ type : object
1497+ status :
1498+ type : string
1499+ data :
1500+ type : object
1501+ required :
1502+ - id
14681503 studyset-return :
14691504 title : studyset-return
14701505 x-examples : {}
0 commit comments