Pipeline API
Prerequisites
Token with Pipeline scope
The Pipeline ID to pass to the API call
You can find the Pipelines ID on the metadata page
Run Pipeline
POST
https://{domain}/api/v1/computations
This API allows for the running of capsules or pipelines.
Path Parameters
Name | Type | Description |
---|---|---|
POST* |
| /computations/
|
Headers
Name | Type | Description |
---|---|---|
-u* |
| Authorize with Code Ocean API Secret: -u $API_SECRET : This is setting the "Authorization Basic" base64string header |
-H |
| Set this to: Content - Type: application/json |
--data-raw |
| JSON data with new or updated permissions |
Request Body
Name | Type | Description |
---|---|---|
capsule_id | string | the identification of the capsule |
Run Pipeline with Data Assets
POST
https://{domain}/api/v1/computations
This API allows for running of capsules or pipelines.
Path Parameters
Name | Type | Description |
---|---|---|
POST* |
| /computations/ Your VPC domain |
Headers
Name | Type | Description |
---|---|---|
-u* |
| Authorize with Code Ocean API Secret: -u $API_SECRET : This is setting the "Authorization Basic" base64string header |
-H* |
| Set this to: Content - Type: application/json |
--data-raw* |
| JSON data with new or updated permissions |
Request Body
Name | Type | Description |
---|---|---|
capsule_id* | string | the identification of the data asset to be used in computational run the id of the capsule/pipeline to run |
data_assets* | string |
|
id* | string | the identification of the data asset to be used in computational run |
mount* | string | the name of the folder you wish to mount this dataset into position |
Run Pipeline with Data Assets & Parameters
POST
https://{domain}/api/v1/computations
This API allows for the running of Capsules/Pipelines with Data Assets and Named parameters.
Prerequisite
Before using this API call, you should have AWS Cloud Credentials configured as Secrets or an Assumable Role.
Path Parameters
Name | Type | Description |
---|---|---|
POST* |
| /computations/ |
Headers
Name | Type | Description |
---|---|---|
-u:* |
| Authorize with Code Ocean API Secret: -u $API_SECRET : |
-H:* |
| Set this to: Content - Type: application/json |
--data-raw: |
| JSON data with capsule/pipeline information |
Request Body
Name | Type | Description |
---|---|---|
capsule_id* | string | identification of the capsule if both capsule_id and pipeline_id are used, only the capsule id wll be used |
pipeline_id | string | identification of the pipeline |
data_assets* | array |
|
ID* | string | identification of the data asset to be used in the computational run |
Mount* | string | name of the folder to mount the dataset into position |
processes | string |
|
name* | string | pipeline process name as it appears in the main.nf script |
parameters | string | parameters expected by the capsule |
Ordered Parameters
Named Parameters
Ordered & Named Parameters
Run Version of Pipeline
Last updated