Capsule API
Last updated
Was this helpful?
Last updated
Was this helpful?
Token with capsule scope
The capsule ID to pass to the API call
You can find the capsule's ID on the metadata page
GET
https://{domain}codeocean.com/api/v1/capsules/{capsule_id}
{domain}*
String
Your VPC domain
{capsule_id}*
String
Capsule's id
Content-Type*
String
application/json
-u*
String
\ '${API Token from Code Ocean}:\' \
GET
https://{domain}codeocean.com/api/v1/capsules/{capsule_id}/computations
{domain}*
String
Your VPC domain
{capsule_id}*
String
Capsule's id
Content-Type*
String
application/json
-u*
String
\ '${API Token from Code Ocean}:\' \
POST
https://{domain}codeocean.com/api/v1/capsules/computations
Create a new computation by running a capsule/pipeline
{domain}*
String
Your VPC domain
Content-Type*
String
application/json
-u*
String
\ '${API Token from Code Ocean}:\' \
capsule_id*
String
the id of the capsule/pipeline to run
parameters
array
run parameters (ignored when running a pipeline)
data_assets
array
id (required) - string - data asset id
mount (required) - string - data asset mount folder
version
integer
the version number of a release capsule (required if capsule_id corresponds to a release capsule)