Capsule
Was this helpful?
Was this helpful?
Generated with Capsule scope
The Capsule ID
You can find the Capsule's ID in metadata.
idstring
Capsule ID
created int64
Capsule creation time
name string
Capsule display name
statusenum
Status of the Capsule
non_release, release
owner string
Capsule owner’s ID
slug string
Alternate Capsule ID
description string
Capsule description
fieldstring
Capsule research field
original_capsuledictionary
(Optional)
Original Capsule Info
idstring
Original Capsule id
major_version integer
Original Capsule major version
minor_version integer
Original Capsule minor version
namestring
Original Capsule name
createdint64
Original Capsule creation data
publicboolean
Indicates whether the original Capsule is public
release_capsulestring
(Optional)
Release Capsule ID
submissiondictionary
(Optional)
timestampint64
Submission time
commit string
Submission commit hash
verification_capsulestring
Verification Capsule ID
verifiedboolean
Indicates whether the Capsule was verified
verified_timestampint64
Verification time
versionsdictionary
(Optional)
Capsule versions
major_versioninteger
The Capsule major version
minor_versioninteger
The Capsule minor version
release_timeint64
The version publishing time
doistring
Version DOI
tagslist<string>
(Optional)
articledictionary
(Optional)
Capsule article info.
urlstring
Article URL
idstring
Article ID
doistring
Article DOI
citationstring
Article citation
stateenum
Article state
in_review, published
namestring
Article name
journal_namestring
Articles journal name
publish_timeint64
Article publish time
cloned_from_url string
URL to external Git repository linked to Capsule
GET
https://{codeocean-domain}/api/v1/capsules/{capsule_id}
This API allows for the retrieval of the metadata for your Capsule.
capsule_id
*
string
Scope
Capsule
Read
GET
https://{codeocean-domain}/api/v1/capsules/{capsule_id}/computations
This API allows for the retrieval of Computations from a Capsule.
capsule_id
*
string
Scope
Capsule
Read
POST
https://{codeocean-domain}/api/v1/capsules/{capsule_id}/data_assets
capsule_id
*
string
List of DataAssetAttachParams
:
id
*
string
Data Asset ID
mount
string
(Optional)
Folder to mount data
Scope
Capsule
Read and Write
Data Asset
Read and Write
DELETE
https://{codeocean-domain}/api/v1/capsules/{capsule_id}/data_assets
This API detaches one or many Data Assets from a Capsule/Pipeline.
Prerequisite
Before using this API call, you may need AWS Cloud Credentials configured as Secrets or an Assumable Role, if you are using Data Assets from Cloud Sources.
capsule_id
*
string
List of Data Asset IDs to detach.
Scope
Capsule
Read and Write
Data Asset
Read and Write
POST
https://{codeocean-domain}/api/v1/capsules/search
POST
https://{codeocean-domain}/api/v1/pipelines/search
This API allows for the searching of Capsules and Pipelines in your deployment.
offset
int
Specifies the starting index for the search.
limit
int
Specifies how many items to return (up to 1000, defaults to 20).
next_token
string
Represents the token for the next page of results as provided in the previous response. If both from
and next_token
are set, the from
parameter is ignored.
sort_order
asc
, desc
Determines the result sort order. Must be provided with sort_field
, otherwise ignored.
sort_field
created
, name
, last_accessed
Determines the field to sort by. Default when searching via filters
is name
. When searching via query
, results are ordered by relevance to the query.
query
string
Determines the search query. Can be a free text or in the form of “name:... tag:..
.”
ownership
created
, shared
Search Capsules by ownership. created
- Only Capsules created by the user.
shared
- Capsules shared with the user
** Defaults to all accessible, admins will have access to all Capsules in the system.
status
release
, non_release
By default all are returned.
favorite
boolean
Search only favorite Capsules.
archived
boolean
Search only archived Capsules.
filters
list
key
string
Field key can be each of name
, description
, tags
, any custom field key defined by the admin.
value
Field value to be included/excluded (optional).
values
Field values in case of multiple values (optional).
range
Field range to be included/excluded (only one of min/max must be set).
min
number
max
number
exclude
boolean
Whether to include/exclude the field value.
has_more
boolean
Indicates if there are more results.
next_token
number
Specifies the next page token for the next request.
results
array
Array of Capsules found.
List of