Computation API
Was this helpful?
Was this helpful?
Token with capsule scope
The computation ID to pass to the API call
The computation ID can only be accessed from the response from the API calls. A typical use cases are to use to locate the computation ID from a capsule or to start a new computation. Both of the methods will have the computations ID in the response body that can use in computations API for further tracking and getting the results.
POST
https://{domain}.codeocean.com/api/v1/computations/{computations_id}
This API allows for the retrieval of information from a computational run.
POST*
/computations/:computation_id/results
-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 capsule/pipeline information
computational_id
string
Identification of computational run
POST
https://{domain}.codeocean.com/api/v1/computations/{computations_id}
This API allows for the retrieval of information from a computational run.
POST*
/computations/:computation_id/results
-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
computational_id*
string
identification of the computational run