Computation API
Last updated
Was this helpful?
Last updated
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.
GET
https://{domain}codeocean.com/api/v1/computations/{computations_id}
{domain}*
String
Your VPC domain
{computations_id}*
String
Computation's id
Content-Type*
String
application/json
-u*
String
\ '${API Token from Code Ocean}:\' \
POST
https://{domain}codeocean.com/api/v1/computations/{computations_id}/results
{domain}*
String
Your VPC domain
{computations_id}*
String
Computation's id
Content-Type*
String
application/json
-u*
String
\ '${API Token from Code Ocean}:\' \
path*
String
string - the path of the folder. The empty path will retrieve the result root folder.
GET
https://{domain}codeocean.com/api/v1/computations/{computations_id}/results/download_url?path={PATH_TO_FILE}
{domain}*
String
Your VPC domain
{computations_id}*
String
Computation's id
{PATH_TO_FILE}*
String
path of the file under /results
Content-Type*
String
application/json
-u*
String
\ '${API Token from Code Ocean}:\' \