Resources
get /datasets
Returns a list of datasets available to the requesting user, optionally filtered by query parameters.
Results are sorted by creation date in reverse order. This means the most recently created datasets will be first and the oldest dataset will be last in the list.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
install_target InstallTargetID | string | ID of the VEuPathDB project that results should be filtered to. This means only datasets that are relevant to the project ID given will be returned. Additionally, this controls the sites on which the dataset installation status will be checked. Meaning, if this parameter is specified and set to, for example, This is desirable for UI-based client use to improve request processing time by the service. Min. length: 5 Max. length: 32 Inherits: string |
ownership Dataset Ownership Filter | string | Ownership status filter. Enum of:
If set to If set to If set to Default value: "any" |
curl -X GET \
https://veupathdb.org/vdi/datasets?InstallTargetID=<value>&ownership=<value>
200 OK chevron_right expand_more
application/json
application/json
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[] Dataset Listing Item | object | Short entry with basic details about a dataset. Inherits: object | ||||||||||||
[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
[].owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
[].owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].owner.firstName | string | |||||||||||||
[].owner.lastName | string | |||||||||||||
[].owner.email | string | |||||||||||||
[].owner.organization | string | |||||||||||||
[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
[].datasetType.name* | string | Min. length: 3 | ||||||||||||
[].datasetType.version* | string | Min. length: 1 | ||||||||||||
[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
[].visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
[].name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
[].origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
[].installTargets* | array | Project IDs for projects the dataset record was submitted to. Unique items: Yes | ||||||||||||
[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
[].status.import* | string | Import status of the dataset.
Enum:
Inherits: string | ||||||||||||
[].status.install | array | |||||||||||||
[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: object | ||||||||||||
[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status.install[].metaStatus* | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].metaMessage | string | |||||||||||||
[].status.install[].dataStatus | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].dataMessage | string | |||||||||||||
[].shares* | array | |||||||||||||
[].shares[] Dataset Listing Share Info | object | Inherits: lib.DatasetListShareUser | ||||||||||||
[].shares[].userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].shares[].firstName* | string | |||||||||||||
[].shares[].lastName* | string | |||||||||||||
[].shares[].organization* | string | |||||||||||||
[].shares[].accepted* | boolean | |||||||||||||
[].fileCount* | integer | Number of files uploaded for this dataset. | ||||||||||||
[].fileSizeTotal* | integer | Sum of the sizes of all the files uploaded for this dataset. Format: int64 | ||||||||||||
[].created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
[].shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
[].shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
[].summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
[].description | string | Longform description of the dataset. Inherits: string | ||||||||||||
[].sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
[].originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
One or more request query parameters were not valid.
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "Invalid install_target value."
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "Users must be logged in to access this resource."
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Dataset store is unreachable",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /datasets
multipart/form-data
HTTP POST
request to upload a new dataset.
Note, the root of the body description below is of the multipart form data fields and not of a literal JSON object.
The meta
field, however, is expected to be a JSON object.
The file
field may be one of:
- a raw data file to import
- a
.zip
file containing one or more files to import - a
.tar.gz
or.tgz
file containing one or more files to import.
The url
field may point to a file that is one of the allowed upload types.
The url
and file
fields cannot both be used at the same time, one must be used or the other. Providing both fields will result in a 4xx range error response.
curl -X POST \
-H "Content-type: multipart/form-data"
-d @file \
https://veupathdb.org/vdi/datasets
Request Body chevron_right expand_more
Dataset Post Request DatasetPostRequestBody
multipart/form-data
HTTP POST request body requesting the creation of a dataset from the components included in the request.
For a request to be considered valid, it must contain exactly 1 of the optional parameters file
or url
. If a request body contains both a file
and a url
field value, the service will return a 400
error.
Inherits: object
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetMetaBase |
details.installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
details.installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
details.name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
details.summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
details.dependencies* | array | Unique items: Yes |
details.dependencies[] Dataset Dependency | object | Inherits: object |
details.dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
details.dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
details.dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.description | string | Longform description of the dataset. Inherits: string |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
details.datasetType* | object | Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
201 Created chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Location* | string | URL to the new dataset resource. |
Dataset Post Response DatasetPostResponseBody
application/json
Successful upload response.
This response does not mean the uploaded dataset has been made available on the target site(s). The upload must first be validated and installed into the target sites before the dataset will become available for use.
Inherits: object
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
422 Unprocessable Entity chevron_right expand_more
Request body was syntactically valid JSON, however the body failed validation rules.
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
424 Failed Dependency chevron_right expand_more
Failed Dependency.
Returned when the dataset data source was a remote URL and the VDI service encountered either a non-success HTTP status code from the target URL or an empty response body.
The most common cause for this is 403
errors from expired AWS URLs.
Failed Dependency Error FailedDependencyError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
dependency* | string |
Response Body
{
"status": "failed-dependency",
"dependency": "google.com",
"message": "unexpected status code 403 from google.com"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /datasets/{vdi-id}
Fetch details about a dataset and its status(es).
If the target dataset has just been posted, this endpoint may return a 404 for several seconds until the post has been asynchronously processed.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X GET \
https://veupathdb.org/vdi/datasets/{vdi-id}
200 OK chevron_right expand_more
Target dataset was located and returned.
Dataset Details DatasetDetails
application/json
Details about a specific singular dataset.
Inherits: lib.DatasetMetaBase
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes | ||||||||||||
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
dependencies* | array | Unique items: Yes | ||||||||||||
dependencies[] Dataset Dependency | object | Inherits: object | ||||||||||||
dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 | ||||||||||||
dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 | ||||||||||||
dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 | ||||||||||||
contacts | array | Unique items: Yes | ||||||||||||
contacts[] Dataset Contact | object | Inherits: object | ||||||||||||
contacts[].name* | string | Min. length: 3 Max. length: 300 | ||||||||||||
contacts[].isPrimary | boolean | |||||||||||||
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 | ||||||||||||
contacts[].affiliation | string | Max. length: 4000 | ||||||||||||
contacts[].city | string | Max. length: 200 | ||||||||||||
contacts[].state | string | Max. length: 200 | ||||||||||||
contacts[].country | string | Max. length: 200 | ||||||||||||
contacts[].address | string | Max. length: 1000 | ||||||||||||
description | string | Longform description of the dataset. Inherits: string | ||||||||||||
hyperlinks | array | Unique items: Yes | ||||||||||||
hyperlinks[] Dataset Hyperlink | object | Inherits: lib.DatasetHyperlink | ||||||||||||
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 | ||||||||||||
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 | ||||||||||||
hyperlinks[].description | string | Max. length: 4000 | ||||||||||||
hyperlinks[].isPublication | boolean | |||||||||||||
organisms | array | Unique items: Yes | ||||||||||||
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation | ||||||||||||
publications | array | Unique items: Yes | ||||||||||||
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication | ||||||||||||
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 | ||||||||||||
publications[].citation | string | Min. length: 3 Max. length: 2000 | ||||||||||||
publications[].isPrimary | boolean | |||||||||||||
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any | ||||||||||||
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
owner.firstName | string | |||||||||||||
owner.lastName | string | |||||||||||||
owner.email | string | |||||||||||||
owner.organization | string | |||||||||||||
importMessages | array | Log lines from the import process. These messages will be warnings and/or validation errors. | ||||||||||||
importMessages[] | string | |||||||||||||
shares | array | Array of share offers that have been created by the owner of this dataset to share it with other users. | ||||||||||||
shares[] Dataset Share Offer | object | Inherits: lib.ShareOffer | ||||||||||||
shares[].recipient* | object | Inherits: lib.ShareOfferRecipient | ||||||||||||
shares[].recipient.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
shares[].recipient.firstName | string | |||||||||||||
shares[].recipient.lastName | string | |||||||||||||
shares[].recipient.organization | string | |||||||||||||
shares[].recipient.email | string | |||||||||||||
shares[].status* | string | Enum:
Inherits: lib.ShareOfferAction | ||||||||||||
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
datasetType.name* | string | Min. length: 3 | ||||||||||||
datasetType.version* | string | Min. length: 1 | ||||||||||||
datasetType.displayName* | string | Min. length: 3 | ||||||||||||
visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
status.install | array | |||||||||||||
status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].metaMessage | string | |||||||||||||
status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].dataMessage | string | |||||||||||||
created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
revisionHistory | array | |||||||||||||
revisionHistory[] Dataset Revision | object | Dataset revision history entry. Inherits: lib.DatasetRevision | ||||||||||||
revisionHistory[].action* | string | Enum:
Inherits: lib.DatasetRevisionAction | ||||||||||||
revisionHistory[].timestamp* | datetime | |||||||||||||
revisionHistory[].revisionId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
revisionHistory[].revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote | ||||||||||||
revisionHistory[].fileListUrl* | string | URL to the file listing for the revision entry. |
301 Moved Permanently chevron_right expand_more
Target dataset has been moved by replacement with the a new VDI ID.
Headers
Parameter | Type | Description |
---|---|---|
Location* | string | URL to the newest dataset revision. |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
patch /datasets/{vdi-id}
Updates the metadata for a target dataset.
If a field in the request body is null, the matching metadata field will retain it's previous value. To "clear" a field, it must be set to an empty string.
The name field, if provided, must not be blank.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X PATCH \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/datasets/{vdi-id}
Request Body chevron_right expand_more
Dataset Patch Request DatasetPatchRequestBody
application/json
Request to update the metadata for a dataset.
Fields that are omitted will be ignored when updating the target dataset record.
Inherits: object
Parameter | Type | Description |
---|---|---|
name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
datasetType.name* | string | Min. length: 3 Max. length: 128 |
datasetType.version* | string | Min. length: 1 Max. length: 32 |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
visibility | string | Enum:
Inherits: lib.DatasetVisibility |
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
description | string | Longform description of the dataset. Inherits: string |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
properties | any | When provided and non-empty, wholely replaces any previous dataset characteristics value. When provided as an empty object, removes the dataset's characteristics. Inherits: any |
204 No Content chevron_right expand_more
Target dataset metadata was updated.
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
422 Unprocessable Entity chevron_right expand_more
Unprocessable Entity.
Request body was syntactically valid JSON, however the body failed validation.
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
put /datasets/{vdi-id}
Uploads a new dataset data revision to replace the existing target dataset.
This method is effectively a modification of the PATCH
request rules for the metadata body to add the required field revisionNote
.
This means that omitting fields from the request or setting them to null
will tell VDI to use the original dataset's values for those fields.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X PUT \
-H "Content-type: multipart/form-data"
-d @file \
https://veupathdb.org/vdi/datasets/{vdi-id}
Request Body chevron_right expand_more
Dataset Put Request DatasetPutRequestBody
multipart/form-data
Inherits: object
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetPatchRequestBody |
details.name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
details.datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.visibility | string | Enum:
Inherits: lib.DatasetVisibility |
details.summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.description | string | Longform description of the dataset. Inherits: string |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.properties | any | When provided and non-empty, wholely replaces any previous dataset characteristics value. When provided as an empty object, removes the dataset's characteristics. Inherits: any |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: string |
details.revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
201 Created chevron_right expand_more
Replacement dataset request has been accepted for processing.
Headers
Parameter | Type | Description |
---|---|---|
Location* | string | URL to the new dataset resource. |
Dataset Put Response DatasetPutResponseBody
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
422 Unprocessable Entity chevron_right expand_more
Unprocessable Entity.
Request body was syntactically valid JSON, however the body failed validation.
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
delete /datasets/{vdi-id}
Marks the target dataset as deleted.
Datasets that have been marked as deleted are still recoverable for a short period of time before they are permanently deleted from the system.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X DELETE \
https://veupathdb.org/vdi/datasets/{vdi-id}
204 No Content chevron_right expand_more
Target dataset was marked as deleted.
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /datasets/{vdi-id}/files
Lists the dataset zip files for the original user upload as well as the install files (when available).
If this endpoint is hit before the dataset has been imported, the upload zip size will be -1
which may be used as an indicator to clients that the zip size cannot yet be shown.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X GET \
https://veupathdb.org/vdi/datasets/{vdi-id}/files
200 OK chevron_right expand_more
Dataset File Report DatasetFileListing
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
upload* | object | Inherits: lib.DatasetZipDetails |
upload.zipSize* | integer | Format: int64 |
upload.contents* | array | |
upload.contents[] Decompressed File Info | object | Inherits: object |
upload.contents[].fileName* | string | |
upload.contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
install | object | Inherits: lib.DatasetZipDetails |
install.zipSize* | integer | Format: int64 |
install.contents* | array | |
install.contents[] Decompressed File Info | object | Inherits: object |
install.contents[].fileName* | string | |
install.contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
documents | array | |
documents[] Decompressed File Info | object | Inherits: object |
documents[].fileName* | string | |
documents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /datasets/{vdi-id}/files/upload
Returns a zip file containing the contents of the original upload to the dataset importer.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X GET \
https://veupathdb.org/vdi/datasets/{vdi-id}/files/upload
200 OK chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Content-Disposition* | string | Content disposition of |
application/octet-stream
application/octet-stream
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /datasets/{vdi-id}/files/data
Returns a zip file containing the processed files that were/would be installed into the VEuPathDB project site on successful install processing.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X GET \
https://veupathdb.org/vdi/datasets/{vdi-id}/files/data
200 OK chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Content-Disposition* | string | Content disposition of |
application/octet-stream
application/octet-stream
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /datasets/{vdi-id}/files/documents/{file-name}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
file-name* | string |
curl -X GET \
https://veupathdb.org/vdi/datasets/{vdi-id}/files/documents/{file-name}
200 OK chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Content-Disposition* | string | Content disposition of |
application/octet-stream
application/octet-stream
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
put /datasets/{vdi-id}/files/documents/{file-name}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
file-name* | string |
curl -X PUT \
-H "Content-type: application/octet-stream"
-d @file \
https://veupathdb.org/vdi/datasets/{vdi-id}/files/documents/{file-name}
Request Body chevron_right expand_more
application/octet-stream
application/octet-stream
204 No Content chevron_right expand_more
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
put /datasets/{vdi-id}/shares/{recipient-user-id}/offer
PUT
a record that is either an offer to share a dataset with another target user, or the revocation of an existing open share offer with a target user.
curl -X PUT \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/datasets/{vdi-id}/shares/{recipient-user-id}/offer
put /datasets/{vdi-id}/shares/{recipient-user-id}/receipt
PUT
a receipt of a dataset share offer, marking the share offer as either accepted
or rejected
.
curl -X PUT \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/datasets/{vdi-id}/shares/{recipient-user-id}/receipt
get /datasets/community
Returns a list of datasets that have been made "public" by the owner setting the dataset visibilities to a setting other than private
.
curl -X GET \
https://veupathdb.org/vdi/datasets/community
200 OK chevron_right expand_more
application/json
application/json
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[] Dataset Listing Item | object | Short entry with basic details about a dataset. Inherits: object | ||||||||||||
[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
[].owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
[].owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].owner.firstName | string | |||||||||||||
[].owner.lastName | string | |||||||||||||
[].owner.email | string | |||||||||||||
[].owner.organization | string | |||||||||||||
[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
[].datasetType.name* | string | Min. length: 3 | ||||||||||||
[].datasetType.version* | string | Min. length: 1 | ||||||||||||
[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
[].visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
[].name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
[].origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
[].installTargets* | array | Project IDs for projects the dataset record was submitted to. Unique items: Yes | ||||||||||||
[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
[].status.import* | string | Import status of the dataset.
Enum:
Inherits: string | ||||||||||||
[].status.install | array | |||||||||||||
[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: object | ||||||||||||
[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status.install[].metaStatus* | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].metaMessage | string | |||||||||||||
[].status.install[].dataStatus | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].dataMessage | string | |||||||||||||
[].shares* | array | |||||||||||||
[].shares[] Dataset Listing Share Info | object | Inherits: lib.DatasetListShareUser | ||||||||||||
[].shares[].userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].shares[].firstName* | string | |||||||||||||
[].shares[].lastName* | string | |||||||||||||
[].shares[].organization* | string | |||||||||||||
[].shares[].accepted* | boolean | |||||||||||||
[].fileCount* | integer | Number of files uploaded for this dataset. | ||||||||||||
[].fileSizeTotal* | integer | Sum of the sizes of all the files uploaded for this dataset. Format: int64 | ||||||||||||
[].created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
[].shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
[].shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
[].summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
[].description | string | Longform description of the dataset. Inherits: string | ||||||||||||
[].sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
[].originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /users/self/meta
Get user metadata.
curl -X GET \
https://veupathdb.org/vdi/users/self/meta
200 OK chevron_right expand_more
User Details UserMetadata
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
quota* | object | Inherits: lib.UserQuotaDetails |
quota.limit* | integer | Max number of bytes a user is allowed to upload. Format: int64 |
quota.usage* | integer | Current number of bytes counted against the user's quota. Format: int64 |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /users/self/share-offers
Endpoint to list dataset shares that have been offered to the requesting user.
curl -X GET \
https://veupathdb.org/vdi/users/self/share-offers?status=<value>
get /plugins
List the plugins currently registered with the VDI instance.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
project Project Filter | string | Optional parameter that may be used to filter the results of this endpoint to only those that are allowed to be used with the target project. Valid values (non-case-sensitive):
|
curl -X GET \
https://veupathdb.org/vdi/plugins?project=<value>
200 OK chevron_right expand_more
application/json
application/json
Parameter | Type | Description |
---|---|---|
[] Plugin Info | object | Inherits: object |
[].displayName* | string | |
[].typeName* | string | |
[].typeVersion* | string | |
[].projects | array | Projects that this plugin is restricted to. An empty or absent list indicates that the plugin has no project restrictions and may be used on any site. |
[].projects[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: string |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /admin/reports/datasets/list-all
Lists all datasets known to VDI via the internal cache database.
Providing a limit
query param value of -1
indicates that ALL records should be returned. In this case, the offset
parameter will be ignored.
Example - List All Live Datasets
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/datasets/list-all?limit=-1" \
> results.json
Example - Paginated by Project
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/datasets/list-all?offset=100&install_target=PlasmoDB" \
> results.json
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
install_target | string | Filter results by install target project ID. This field is not case sensitive. |
include_deleted | boolean | Controls whether datasets that have been marked as deleted should be included in the results. |
limit | integer | Result count limit. If set to Default value: 100 |
offset | integer | Pagination offset. Ignored if |
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X GET \
https://veupathdb.org/vdi/admin/reports/datasets/list-all?install_target=<value>&include_deleted=<value>&limit=<value>&offset=<value>
200 OK chevron_right expand_more
All Datasets Listing Response AllDatasetsListResponse
application/json
Inherits: object
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
meta* | object | Inherits: object | ||||||||||||
meta.count* | integer | |||||||||||||
meta.offset* | integer | |||||||||||||
meta.limit* | integer | |||||||||||||
meta.total* | integer | |||||||||||||
results* | array | |||||||||||||
results[] | object | Inherits: object | ||||||||||||
results[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
results[].owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
results[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
results[].datasetType.name* | string | Min. length: 3 | ||||||||||||
results[].datasetType.version* | string | Min. length: 1 | ||||||||||||
results[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
results[].visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
results[].name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
results[].origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
results[].installTargets* | array | Unique items: Yes | ||||||||||||
results[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
results[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
results[].status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
results[].status.install | array | |||||||||||||
results[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
results[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
results[].status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
results[].status.install[].metaMessage | string | |||||||||||||
results[].status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
results[].status.install[].dataMessage | string | |||||||||||||
results[].created* | datetime | Timestamp of the creation of the dataset Inherits: lib.DatasetCreationDate | ||||||||||||
results[].isDeleted* | boolean | |||||||||||||
results[].shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
results[].shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
results[].summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
results[].description | string | Longform description of the dataset. Inherits: lib.DatasetDescription | ||||||||||||
results[].sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl |
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /admin/reports/datasets/{vdi-id}
Example
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/datasets/123dk37h" \
> details.json
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X GET \
https://veupathdb.org/vdi/admin/reports/datasets/{vdi-id}
200 OK chevron_right expand_more
InternalDatasetDetails InternalDatasetDetails
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
datasetType* | object | Details about a specific dataset type. Inherits: object |
datasetType.name* | string | Min. length: 3 |
datasetType.version* | string | Min. length: 1 |
datasetType.displayName* | string | Min. length: 3 |
owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
isDeleted* | boolean | |
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: string |
created* | datetime | Timestamp of the creation of the dataset Inherits: datetime |
inserted* | datetime | |
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
installTargets* | array | Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: string |
status* | string | |
importMessages* | array | |
importMessages[] | string | |
visibility* | string | Enum:
Inherits: string |
shortName | string | Min. length: 3 Max. length: 300 Inherits: string |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: string |
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: string |
description | string | Longform description of the dataset. Inherits: string |
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: string |
syncControl | object | Inherits: lib.SyncControlRecord |
syncControl.sharesUpdateTime* | datetime | |
syncControl.dataUpdateTime* | datetime | |
syncControl.metaUpdateTime* | datetime | |
uploadFiles | array | |
uploadFiles[] | string | |
installFiles | array | |
installFiles[] | string |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /admin/reports/imports/failed
Lists datasets that failed to import.
Note: A failed import is different from an invalid import. Failed imports are caused by process bugs or errors, invalid imports are caused by bad user input.
Example - List All
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/imports/failed?limit=-1" \
> failed-imports.json
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
user UserId | integer | Filters results to only records owned by the target user. Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: integer |
before Partial Datetime | string | Filters results to only records created before the given datetime. Min. length: 4 Inherits: string |
after Partial Datetime | string | Filter results to only records created after the given datetime. Min. length: 4 Inherits: string |
sort | string | Sorting field. Default value: "date" Enum:
|
order | string | Sort order. Default value: "desc" Enum:
|
limit | integer | Result count limit. If set to Default value: 100 |
offset | integer | Pagination offset. Ignored if |
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X GET \
https://veupathdb.org/vdi/admin/reports/imports/failed?UserId=<value>&PartialDate=<value>&PartialDate=<value>&sort=<value>&order=<value>&limit=<value>&offset=<value>
200 OK chevron_right expand_more
BrokenImportListing BrokenImportListing
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
meta* | object | Inherits: lib.BrokenImportListingMeta |
meta.count* | integer | Number of records in the result |
meta.before | string | |
meta.after | string | |
meta.user | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
meta.limit | integer | |
meta.offset | integer | |
results* | array | |
results[] Broken Import Details | object | Inherits: object |
results[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
results[].owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
results[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput |
results[].datasetType.name* | string | Min. length: 3 |
results[].datasetType.version* | string | Min. length: 1 |
results[].datasetType.displayName* | string | Min. length: 3 |
results[].installTargets* | array | Unique items: Yes |
results[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
results[].messages* | array | |
results[].messages[] | string |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /admin/reports/installs/failed
Lists datasets that failed installation due to a non-user error, such as a system outage or service bug.
The returned report may be either a list of dataset ID strings, or a list of dataset detail objects depending on the provided expanded
query parameter value. By default, dataset detail objects are returned.
Example - Dataset ID List
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/installs/failed?expanded=false" \
> failed-installs.json
Example - Detailed Dataset List
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/installs/failed" \
> failed-installs.json
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
expanded | boolean | Whether the returned broken dataset install list should be expanded to include additional details about each dataset or should be just a simple list of dataset IDs. Default value: true |
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X GET \
https://veupathdb.org/vdi/admin/reports/installs/failed?expanded=<value>
200 OK chevron_right expand_more
Failed Install Report BrokenDatasetInstallReportBody
application/json
Inherits: object
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
details | array | |||||||||||||
details[] | object | Inherits: object | ||||||||||||
details[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
details[].owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
details[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
details[].datasetType.name* | string | Min. length: 3 | ||||||||||||
details[].datasetType.version* | string | Min. length: 1 | ||||||||||||
details[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
details[].installTargets* | array | Unique items: Yes | ||||||||||||
details[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
details[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
details[].status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
details[].status.install | array | |||||||||||||
details[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
details[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
details[].status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
details[].status.install[].metaMessage | string | |||||||||||||
details[].status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
details[].status.install[].dataMessage | string | |||||||||||||
ids | array | |||||||||||||
ids[] | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /admin/reports/object-store/list-all
Lists all the objects currently in the object store backing VDI.
This endpoint returns the data in TSV format with the following columns for each object in the store:
- Key/path
- Size (in bytes)
- Last modified date
Example
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/reports/object-store/list-all" \
> minio-objects.tsv
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X GET \
https://veupathdb.org/vdi/admin/reports/object-store/list-all
200 OK chevron_right expand_more
text/plain
text/plain
Response Body
/foo/bar/fizz 342345 2023-08-13T15:34:04.0342Z
/foo/bar/buzz 32125 2023-08-13T15:34:06.1254Z
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /admin/rpc/datasets/proxy-upload
Upload a dataset on behalf of a target user.
Usage: This endpoint functions the same as the normal create dataset endpoint with the additional requirement of a target User ID provided as a header.
Example File Upload:
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
--header "User-ID: ${TARGET_USER_ID}" \
--form meta=@dataset-metadata.json \
--form file=@dataset-contents.zip \
"${VDI_INSTANCE}/admin/rpc/datasets/proxy-upload"
Example URL Upload:
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
--header "User-ID: ${TARGET_USER_ID}" \
--form meta=@dataset-metadata.json \
--form url='https://some.website.com/path/to/file' \
"${VDI_INSTANCE}/admin/rpc/datasets/proxy-upload"
Headers chevron_right expand_more
Parameter | Type | Description |
---|---|---|
User-ID* UserId | integer | ID of the target user on whose behalf a dataset is being uploaded Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: integer |
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X POST \
-H "UserId: <value>" \
-H "Content-type: multipart/form-data"
-d @file \
https://veupathdb.org/vdi/admin/rpc/datasets/proxy-upload
Request Body chevron_right expand_more
Dataset Proxy Post Request DatasetProxyPostRequestBody
multipart/form-data
multipart/form-data
HTTP POST
request to upload a new dataset.
Note, the body description below is of the multipart form data fields and not of a JSON object.
The meta
field, however, is expected to be a JSON blob.
Inherits: object
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetPostMeta |
details.installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
details.installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
details.name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
details.summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
details.dependencies* | array | Unique items: Yes |
details.dependencies[] Dataset Dependency | object | Inherits: object |
details.dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
details.dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
details.dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.description | string | Longform description of the dataset. Inherits: string |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
details.datasetType* | object | Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
details.createdOn Creation Date | datetime | |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
200 OK chevron_right expand_more
Dataset Post Response DatasetPostResponseBody
application/json
Successful upload response.
This response does not mean the uploaded dataset has been made available on the target site(s). The upload must first be validated and installed into the target sites before the dataset will become available for use.
Inherits: object
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
422 Unprocessable Entity chevron_right expand_more
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /admin/rpc/datasets/prune
Permanently delete jobs that were soft deleted more than 24 hours prior to the execution of this task.
Example
curl --request POST \
--header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/rpc/datasets/prune?age_cutoff=2022-03-15"
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
age_cutoff Retention Window Override | string | When given, overrides the configured dataset retention duration, and instead prunes all datasets that were soft-deleted before this timestamp. Expected date format is a subset of the RFC3336 format, requiring at least Examples:
|
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X POST \
https://veupathdb.org/vdi/admin/rpc/datasets/prune?age_cutoff=<value>
204 No Content chevron_right expand_more
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /admin/rpc/datasets/reconcile
Triggers a full reconciliation run if one is not already in progress.
Example
curl --request POST \
--header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/rpc/datasets/reconcile"
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X POST \
https://veupathdb.org/vdi/admin/rpc/datasets/reconcile
204 No Content chevron_right expand_more
Success
409 Conflict chevron_right expand_more
Reconciler already running.
Conflict ConflictError
application/json
The request could not be completed due to a conflict with the current state of the resource.
If you submitted a resource, that resource may already exist.
Discriminator: status
Discriminator value: conflict
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "conflict",
"message": "Target resource already exists and cannot be overwritten."
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /admin/rpc/installs/clear-failed
Marks all or target datasets that are in a status of installation failure into a ready-for-reinstall
status then runs the dataset reinstallation process which attempts to uninstall and reinstall all datasets in that status.
The request body should specify exactly one of all
or targets
to select whether install cleanup should target all failed datasets across all sites, or if install cleanup should target only specific datasets on specific sites.
If the request specifies neither all
or targets
the endpoint will do nothing.
Optionally the query param skip-run
may be provided to skip the execution of the dataset reinstallation process. This may be used in situations where multiple batches of datasets are being marked as ready-for-reinstall
.
Single Run Example
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
--data '{"all":true}'
"${VDI_INSTANCE}/admin/rpc/datasets/reconcile"
Batch Run Example
# Mark datasets as ready for reinstall, but don't start reinstaller yet
curl --header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
--data '{"targets":["datasetId": "1235asf", "installTarget": "PlasmoDB"]}'
"${VDI_INSTANCE}/admin/rpc/datasets/reconcile?skip-run=true"
curl ...
curl ...
curl ...
# After all datasets have been marked, start the reinstaller.
curl --request POST \
--header "Admin-Token: ${VDI_ADMIN_TOKEN}" \
"${VDI_INSTANCE}/admin/rpc/datasets/reconcile"
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
skip-run | boolean |
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X POST \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/admin/rpc/installs/clear-failed?skip-run=<value>
Request Body chevron_right expand_more
Install Cleanup Request InstallCleanupRequestBody
application/json
Object controlling the install cleanup process and what datasets it should target.
Requesters should specify one of the fields all
or targets
to control what datasets will be cleaned up. If neither is specified, the endpoint will just run the reinstaller, unless skip-run
is set, in which case the endpoint will do nothing.
Inherits: object
Parameter | Type | Description |
---|---|---|
all | boolean | |
targets | array | Unique items: Yes |
targets[] Install Cleanup Target | object | Inherits: lib.InstallCleanupTarget |
targets[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
targets[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
204 No Content chevron_right expand_more
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /admin/rpc/object-store/purge-dataset
Removes a dataset from the object store and internal postgres database.
This is intended to be used exclusively for clearing bad state created by errors or bugs.
This action does not perform dataset uninstalls, and may leave VDI in a bad state if run against a dataset that isn't broken.
Secured By chevron_right expand_more
Admin Token AdminToken
Per-service admin token header.
curl -X POST \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/admin/rpc/object-store/purge-dataset
Request Body chevron_right expand_more
Dataset Object Purge Request DatasetObjectPurgeRequestBody
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
204 No Content chevron_right expand_more
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /meta-info
200 OK chevron_right expand_more
ServiceMetadataResponseBody ServiceMetadataResponseBody
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
buildInfo* | object | Inherits: object |
buildInfo.gitTag* | string | |
buildInfo.gitCommit* | string | |
buildInfo.gitBranch* | string | |
buildInfo.gitUrl* | string | |
buildInfo.buildId* | string | |
buildInfo.buildNumber* | string | |
buildInfo.buildTime* | string |
get /api
Renders the API documentation for this service.
curl -X GET \
https://veupathdb.org/vdi/api
200 OK chevron_right expand_more
text/html
text/html
get /health
Prints information about the overall service health.
curl -X GET \
https://veupathdb.org/vdi/health
200 OK chevron_right expand_more
HealthResponse HealthResponse
application/json
Health details about the service
Inherits: object
Parameter | Type | Description |
---|---|---|
status* | string | Status describes the overall service state. A status of "healthy" indicates that everything is running smoothly and all service dependencies are reachable and online. A status of "unhealthy" indicates that something is wrong with either this service or one or more of it's dependency services. Enum:
|
dependencies* | array | A list of external services that this service depends on and some details about them. |
dependencies[] | object | Inherits: DependencyStatus |
dependencies[].name* | string | Name of the external depdendency. |
dependencies[].reachable* | boolean | Whether or not the external service is reachable. |
dependencies[].online* | string | Whether or not the external service is online and available for requests. Enum:
|
info* | object | Additional properties: Yes |
info.threads* | integer | Min. value: 1 |
info.uptime* | string | |
info.uptimeMillis* | integer | Min. value: 1 Format: int64 |
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /metrics
Prometheus metrics for the service.
curl -X GET \
https://veupathdb.org/vdi/metrics
200 OK chevron_right expand_more
text/plain
text/plain
get /vdi-datasets
Deprecated alias of /datasets
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
install_target InstallTargetID | string | ID of the VEuPathDB project that results should be filtered to. This means only datasets that are relevant to the project ID given will be returned. Additionally, this controls the sites on which the dataset installation status will be checked. Meaning, if this parameter is specified and set to, for example, This is desirable for UI-based client use to improve request processing time by the service. Min. length: 5 Max. length: 32 Inherits: string |
ownership Dataset Ownership Filter | string | Ownership status filter. Enum of:
If set to If set to If set to Default value: "any" |
Annotations chevron_right expand_more
Deprecated
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets?InstallTargetID=<value>&ownership=<value>
200 OK chevron_right expand_more
application/json
application/json
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[] Dataset Listing Item | object | Short entry with basic details about a dataset. Inherits: object | ||||||||||||
[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
[].owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
[].owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].owner.firstName | string | |||||||||||||
[].owner.lastName | string | |||||||||||||
[].owner.email | string | |||||||||||||
[].owner.organization | string | |||||||||||||
[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
[].datasetType.name* | string | Min. length: 3 | ||||||||||||
[].datasetType.version* | string | Min. length: 1 | ||||||||||||
[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
[].visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
[].name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
[].origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
[].installTargets* | array | Project IDs for projects the dataset record was submitted to. Unique items: Yes | ||||||||||||
[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
[].status.import* | string | Import status of the dataset.
Enum:
Inherits: string | ||||||||||||
[].status.install | array | |||||||||||||
[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: object | ||||||||||||
[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status.install[].metaStatus* | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].metaMessage | string | |||||||||||||
[].status.install[].dataStatus | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].dataMessage | string | |||||||||||||
[].shares* | array | |||||||||||||
[].shares[] Dataset Listing Share Info | object | Inherits: lib.DatasetListShareUser | ||||||||||||
[].shares[].userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].shares[].firstName* | string | |||||||||||||
[].shares[].lastName* | string | |||||||||||||
[].shares[].organization* | string | |||||||||||||
[].shares[].accepted* | boolean | |||||||||||||
[].fileCount* | integer | Number of files uploaded for this dataset. | ||||||||||||
[].fileSizeTotal* | integer | Sum of the sizes of all the files uploaded for this dataset. Format: int64 | ||||||||||||
[].created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
[].shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
[].shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
[].summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
[].description | string | Longform description of the dataset. Inherits: string | ||||||||||||
[].sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
[].originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
One or more request query parameters were not valid.
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "Invalid install_target value."
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "Users must be logged in to access this resource."
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Dataset store is unreachable",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
post /vdi-datasets
Deprecated alias of /datasets
Annotations chevron_right expand_more
Deprecated
curl -X POST \
-H "Content-type: multipart/form-data"
-d @file \
https://veupathdb.org/vdi/vdi-datasets
Request Body chevron_right expand_more
Dataset Post Request DatasetPostRequestBody
multipart/form-data
HTTP POST request body requesting the creation of a dataset from the components included in the request.
For a request to be considered valid, it must contain exactly 1 of the optional parameters file
or url
. If a request body contains both a file
and a url
field value, the service will return a 400
error.
Inherits: object
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetMetaBase |
details.installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
details.installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
details.name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
details.summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
details.dependencies* | array | Unique items: Yes |
details.dependencies[] Dataset Dependency | object | Inherits: object |
details.dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
details.dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
details.dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.description | string | Longform description of the dataset. Inherits: string |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
details.datasetType* | object | Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
201 Created chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Location* | string | URL to the new dataset resource. |
Dataset Post Response DatasetPostResponseBody
application/json
Successful upload response.
This response does not mean the uploaded dataset has been made available on the target site(s). The upload must first be validated and installed into the target sites before the dataset will become available for use.
Inherits: object
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
422 Unprocessable Entity chevron_right expand_more
Request body was syntactically valid JSON, however the body failed validation rules.
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
424 Failed Dependency chevron_right expand_more
Failed Dependency.
Returned when the dataset data source was a remote URL and the VDI service encountered either a non-success HTTP status code from the target URL or an empty response body.
The most common cause for this is 403
errors from expired AWS URLs.
Failed Dependency Error FailedDependencyError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
dependency* | string |
Response Body
{
"status": "failed-dependency",
"dependency": "google.com",
"message": "unexpected status code 403 from google.com"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-datasets/community
Deprecated alias of /datasets/community
Annotations chevron_right expand_more
Deprecated
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/community
200 OK chevron_right expand_more
application/json
application/json
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[] Dataset Listing Item | object | Short entry with basic details about a dataset. Inherits: object | ||||||||||||
[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
[].owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
[].owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].owner.firstName | string | |||||||||||||
[].owner.lastName | string | |||||||||||||
[].owner.email | string | |||||||||||||
[].owner.organization | string | |||||||||||||
[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
[].datasetType.name* | string | Min. length: 3 | ||||||||||||
[].datasetType.version* | string | Min. length: 1 | ||||||||||||
[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
[].visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
[].name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
[].origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
[].installTargets* | array | Project IDs for projects the dataset record was submitted to. Unique items: Yes | ||||||||||||
[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
[].status.import* | string | Import status of the dataset.
Enum:
Inherits: string | ||||||||||||
[].status.install | array | |||||||||||||
[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: object | ||||||||||||
[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
[].status.install[].metaStatus* | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].metaMessage | string | |||||||||||||
[].status.install[].dataStatus | string | Enum:
Inherits: string | ||||||||||||
[].status.install[].dataMessage | string | |||||||||||||
[].shares* | array | |||||||||||||
[].shares[] Dataset Listing Share Info | object | Inherits: lib.DatasetListShareUser | ||||||||||||
[].shares[].userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
[].shares[].firstName* | string | |||||||||||||
[].shares[].lastName* | string | |||||||||||||
[].shares[].organization* | string | |||||||||||||
[].shares[].accepted* | boolean | |||||||||||||
[].fileCount* | integer | Number of files uploaded for this dataset. | ||||||||||||
[].fileSizeTotal* | integer | Sum of the sizes of all the files uploaded for this dataset. Format: int64 | ||||||||||||
[].created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
[].shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
[].shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
[].summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
[].description | string | Longform description of the dataset. Inherits: string | ||||||||||||
[].sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
[].originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-datasets/{vdi-id}
Deprecated alias of /datasets/{vdi-id}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
Annotations chevron_right expand_more
Deprecated
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}
200 OK chevron_right expand_more
Target dataset was located and returned.
Dataset Details DatasetDetails
application/json
Details about a specific singular dataset.
Inherits: lib.DatasetMetaBase
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes | ||||||||||||
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
dependencies* | array | Unique items: Yes | ||||||||||||
dependencies[] Dataset Dependency | object | Inherits: object | ||||||||||||
dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 | ||||||||||||
dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 | ||||||||||||
dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 | ||||||||||||
contacts | array | Unique items: Yes | ||||||||||||
contacts[] Dataset Contact | object | Inherits: object | ||||||||||||
contacts[].name* | string | Min. length: 3 Max. length: 300 | ||||||||||||
contacts[].isPrimary | boolean | |||||||||||||
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 | ||||||||||||
contacts[].affiliation | string | Max. length: 4000 | ||||||||||||
contacts[].city | string | Max. length: 200 | ||||||||||||
contacts[].state | string | Max. length: 200 | ||||||||||||
contacts[].country | string | Max. length: 200 | ||||||||||||
contacts[].address | string | Max. length: 1000 | ||||||||||||
description | string | Longform description of the dataset. Inherits: string | ||||||||||||
hyperlinks | array | Unique items: Yes | ||||||||||||
hyperlinks[] Dataset Hyperlink | object | Inherits: lib.DatasetHyperlink | ||||||||||||
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 | ||||||||||||
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 | ||||||||||||
hyperlinks[].description | string | Max. length: 4000 | ||||||||||||
hyperlinks[].isPublication | boolean | |||||||||||||
organisms | array | Unique items: Yes | ||||||||||||
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation | ||||||||||||
publications | array | Unique items: Yes | ||||||||||||
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication | ||||||||||||
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 | ||||||||||||
publications[].citation | string | Min. length: 3 Max. length: 2000 | ||||||||||||
publications[].isPrimary | boolean | |||||||||||||
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
properties | ||||||||||||||
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
owner.firstName | string | |||||||||||||
owner.lastName | string | |||||||||||||
owner.email | string | |||||||||||||
owner.organization | string | |||||||||||||
importMessages | array | Log lines from the import process. These messages will be warnings and/or validation errors. | ||||||||||||
importMessages[] | string | |||||||||||||
shares | array | Array of share offers that have been created by the owner of this dataset to share it with other users. | ||||||||||||
shares[] Dataset Share Offer | object | Inherits: lib.ShareOffer | ||||||||||||
shares[].recipient* | object | Inherits: lib.ShareOfferRecipient | ||||||||||||
shares[].recipient.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
shares[].recipient.firstName | string | |||||||||||||
shares[].recipient.lastName | string | |||||||||||||
shares[].recipient.organization | string | |||||||||||||
shares[].recipient.email | string | |||||||||||||
shares[].status* | string | Enum:
Inherits: lib.ShareOfferAction | ||||||||||||
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
datasetType.name* | string | Min. length: 3 | ||||||||||||
datasetType.version* | string | Min. length: 1 | ||||||||||||
datasetType.displayName* | string | Min. length: 3 | ||||||||||||
visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
status.install | array | |||||||||||||
status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].metaMessage | string | |||||||||||||
status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].dataMessage | string | |||||||||||||
created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
revisionHistory | array | |||||||||||||
revisionHistory[] Dataset Revision | object | Dataset revision history entry. Inherits: lib.DatasetRevision | ||||||||||||
revisionHistory[].action* | string | Enum:
Inherits: lib.DatasetRevisionAction | ||||||||||||
revisionHistory[].timestamp* | datetime | |||||||||||||
revisionHistory[].revisionId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
revisionHistory[].revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote | ||||||||||||
revisionHistory[].fileListUrl* | string | URL to the file listing for the revision entry. |
301 Moved Permanently chevron_right expand_more
Target dataset has been moved by replacement with the a new VDI ID.
Headers
Parameter | Type | Description |
---|---|---|
Location* | string | URL to the newest dataset revision. |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
patch /vdi-datasets/{vdi-id}
Deprecated alias of /datasets/{vdi-id}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
Annotations chevron_right expand_more
Deprecated
curl -X PATCH \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}
Request Body chevron_right expand_more
Dataset Patch Request DatasetPatchRequestBody
application/json
Request to update the metadata for a dataset.
Fields that are omitted will be ignored when updating the target dataset record.
Inherits: object
Parameter | Type | Description |
---|---|---|
name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
datasetType.name* | string | Min. length: 3 Max. length: 128 |
datasetType.version* | string | Min. length: 1 Max. length: 32 |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
visibility | string | Enum:
Inherits: lib.DatasetVisibility |
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
description | string | Longform description of the dataset. Inherits: string |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
properties |
204 No Content chevron_right expand_more
Target dataset metadata was updated.
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
422 Unprocessable Entity chevron_right expand_more
Unprocessable Entity.
Request body was syntactically valid JSON, however the body failed validation.
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
put /vdi-datasets/{vdi-id}
Deprecated alias of /datasets/{vdi-id}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
Annotations chevron_right expand_more
Deprecated
curl -X PUT \
-H "Content-type: multipart/form-data"
-d @file \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}
Request Body chevron_right expand_more
Dataset Put Request DatasetPutRequestBody
multipart/form-data
Inherits: object
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetPatchRequestBody |
details.name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
details.datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.visibility | string | Enum:
Inherits: lib.DatasetVisibility |
details.summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.description | string | Longform description of the dataset. Inherits: string |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.properties | any | When provided and non-empty, wholely replaces any previous dataset characteristics value. When provided as an empty object, removes the dataset's characteristics. Inherits: any |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: string |
details.revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
201 Created chevron_right expand_more
Replacement dataset request has been accepted for processing.
Headers
Parameter | Type | Description |
---|---|---|
Location* | string | URL to the new dataset resource. |
Dataset Put Response DatasetPutResponseBody
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
422 Unprocessable Entity chevron_right expand_more
Unprocessable Entity.
Request body was syntactically valid JSON, however the body failed validation.
Unprocessable Entity UnprocessableEntityError
application/json
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Response Body
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
delete /vdi-datasets/{vdi-id}
Deprecated alias of /datasets/{vdi-id}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
Annotations chevron_right expand_more
Deprecated
curl -X DELETE \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}
204 No Content chevron_right expand_more
Target dataset was marked as deleted.
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
403 Forbidden chevron_right expand_more
Forbidden ForbiddenError
application/json
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-datasets/{vdi-id}/files
Deprecated alias of /datasets/{vdi-id}/files
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
Annotations chevron_right expand_more
Deprecated
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/files
200 OK chevron_right expand_more
Dataset File Report DatasetFileListing
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
upload* | object | Inherits: lib.DatasetZipDetails |
upload.zipSize* | integer | Format: int64 |
upload.contents* | array | |
upload.contents[] Decompressed File Info | object | Inherits: object |
upload.contents[].fileName* | string | |
upload.contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
install | object | Inherits: lib.DatasetZipDetails |
install.zipSize* | integer | Format: int64 |
install.contents* | array | |
install.contents[] Decompressed File Info | object | Inherits: object |
install.contents[].fileName* | string | |
install.contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
documents | array | |
documents[] Decompressed File Info | object | Inherits: object |
documents[].fileName* | string | |
documents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-datasets/{vdi-id}/files/upload
Returns a zip file containing the contents of the original upload to the dataset importer.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/files/upload
200 OK chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Content-Disposition* | string | Content disposition of |
application/octet-stream
application/octet-stream
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-datasets/{vdi-id}/files/data
Returns a zip file containing the processed files that were/would be installed into the VEuPathDB project site on successful install processing.
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/files/data
200 OK chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Content-Disposition* | string | Content disposition of |
application/octet-stream
application/octet-stream
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-datasets/{vdi-id}/files/documents/{file-name}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
file-name* | string |
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/files/documents/{file-name}
200 OK chevron_right expand_more
Headers
Parameter | Type | Description |
---|---|---|
Content-Disposition* | string | Content disposition of |
application/octet-stream
application/octet-stream
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
put /vdi-datasets/{vdi-id}/files/documents/{file-name}
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Path | ||
vdi-id* VdiId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: string |
file-name* | string |
curl -X PUT \
-H "Content-type: application/octet-stream"
-d @file \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/files/documents/{file-name}
Request Body chevron_right expand_more
application/octet-stream
application/octet-stream
204 No Content chevron_right expand_more
400 Bad Request chevron_right expand_more
Bad Request BadRequestError
application/json
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "bad-request",
"message": "malformed JSON"
}
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
404 Not Found chevron_right expand_more
Not Found NotFoundError
application/json
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "not-found",
"message": "the requested resource could not be found"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
put /vdi-datasets/{vdi-id}/shares/{recipient-user-id}/offer
PUT
a record that is either an offer to share a dataset with another target user, or the revocation of an existing open share offer with a target user.
curl -X PUT \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/shares/{recipient-user-id}/offer
put /vdi-datasets/{vdi-id}/shares/{recipient-user-id}/receipt
PUT
a receipt of a dataset share offer, marking the share offer as either accepted
or rejected
.
curl -X PUT \
-H "Content-type: application/json"
-d @body.json \
https://veupathdb.org/vdi/vdi-datasets/{vdi-id}/shares/{recipient-user-id}/receipt
get /vdi-datasets/share-offers
Deprecated alias of /users/self/share-offers
curl -X GET \
https://veupathdb.org/vdi/vdi-datasets/share-offers?status=<value>
get /vdi-users/self/meta
Get user metadata.
curl -X GET \
https://veupathdb.org/vdi/vdi-users/self/meta
200 OK chevron_right expand_more
User Details UserMetadata
application/json
Inherits: object
Parameter | Type | Description |
---|---|---|
quota* | object | Inherits: lib.UserQuotaDetails |
quota.limit* | integer | Max number of bytes a user is allowed to upload. Format: int64 |
quota.usage* | integer | Current number of bytes counted against the user's quota. Format: int64 |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
get /vdi-users/self/share-offers
Endpoint to list dataset shares that have been offered to the requesting user.
curl -X GET \
https://veupathdb.org/vdi/vdi-users/self/share-offers?status=<value>
get /vdi-plugins
Deprecated alias of /plugins
Parameters chevron_right expand_more
Parameter | Type | Description |
---|---|---|
Query | ||
project Project Filter | string | Optional parameter that may be used to filter the results of this endpoint to only those that are allowed to be used with the target project. Valid values (non-case-sensitive):
|
Annotations chevron_right expand_more
Deprecated
curl -X GET \
https://veupathdb.org/vdi/vdi-plugins?project=<value>
200 OK chevron_right expand_more
application/json
application/json
Parameter | Type | Description |
---|---|---|
[] Plugin Info | object | Inherits: object |
[].displayName* | string | |
[].typeName* | string | |
[].typeVersion* | string | |
[].projects | array | Projects that this plugin is restricted to. An empty or absent list indicates that the plugin has no project restrictions and may be used on any site. |
[].projects[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: string |
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
500 Internal Server Error chevron_right expand_more
Internal Server Error ServerError
application/json
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Response Body
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
Security Schemes
Security Scheme AdminToken
Per-service admin token header.
curl -X <method> \
https://veupathdb.org/vdi/<path>
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
Security Scheme WdkAuth
curl -X <method> \
https://veupathdb.org/vdi/<path>
401 Unauthorized chevron_right expand_more
Unauthorized UnauthorizedError
application/json
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Response Body
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
Types
Type AllDatasetsListEntry (object)
Inherits: object
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
datasetType.name* | string | Min. length: 3 | ||||||||||||
datasetType.version* | string | Min. length: 1 | ||||||||||||
datasetType.displayName* | string | Min. length: 3 | ||||||||||||
visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
installTargets* | array | Unique items: Yes | ||||||||||||
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
status.install | array | |||||||||||||
status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].metaMessage | string | |||||||||||||
status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].dataMessage | string | |||||||||||||
created* | datetime | Timestamp of the creation of the dataset Inherits: lib.DatasetCreationDate | ||||||||||||
isDeleted* | boolean | |||||||||||||
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
description | string | Longform description of the dataset. Inherits: lib.DatasetDescription | ||||||||||||
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl |
Type AllDatasetsListMeta (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
count* | integer | |
offset* | integer | |
limit* | integer | |
total* | integer |
Type AllDatasetsListResponse (object)
Inherits: object
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
meta* | object | Inherits: object | ||||||||||||
meta.count* | integer | |||||||||||||
meta.offset* | integer | |||||||||||||
meta.limit* | integer | |||||||||||||
meta.total* | integer | |||||||||||||
results* | array | |||||||||||||
results[] | object | Inherits: object | ||||||||||||
results[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
results[].owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
results[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
results[].datasetType.name* | string | Min. length: 3 | ||||||||||||
results[].datasetType.version* | string | Min. length: 1 | ||||||||||||
results[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
results[].visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
results[].name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
results[].origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
results[].installTargets* | array | Unique items: Yes | ||||||||||||
results[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
results[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
results[].status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
results[].status.install | array | |||||||||||||
results[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
results[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
results[].status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
results[].status.install[].metaMessage | string | |||||||||||||
results[].status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
results[].status.install[].dataMessage | string | |||||||||||||
results[].created* | datetime | Timestamp of the creation of the dataset Inherits: lib.DatasetCreationDate | ||||||||||||
results[].isDeleted* | boolean | |||||||||||||
results[].shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
results[].shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
results[].summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
results[].description | string | Longform description of the dataset. Inherits: lib.DatasetDescription | ||||||||||||
results[].sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl |
Type BadRequestError (object)
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "bad-request",
"message": "malformed JSON"
}
Type BrokenDatasetInstallDetails (object)
Inherits: object
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
datasetType.name* | string | Min. length: 3 | ||||||||||||
datasetType.version* | string | Min. length: 1 | ||||||||||||
datasetType.displayName* | string | Min. length: 3 | ||||||||||||
installTargets* | array | Unique items: Yes | ||||||||||||
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
status.install | array | |||||||||||||
status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].metaMessage | string | |||||||||||||
status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].dataMessage | string |
Type BrokenDatasetInstallReportBody (object)
Inherits: object
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
details | array | |||||||||||||
details[] | object | Inherits: object | ||||||||||||
details[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
details[].owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
details[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
details[].datasetType.name* | string | Min. length: 3 | ||||||||||||
details[].datasetType.version* | string | Min. length: 1 | ||||||||||||
details[].datasetType.displayName* | string | Min. length: 3 | ||||||||||||
details[].installTargets* | array | Unique items: Yes | ||||||||||||
details[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
details[].status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
details[].status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
details[].status.install | array | |||||||||||||
details[].status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
details[].status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
details[].status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
details[].status.install[].metaMessage | string | |||||||||||||
details[].status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
details[].status.install[].dataMessage | string | |||||||||||||
ids | array | |||||||||||||
ids[] | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
Type BrokenImportDetails (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput |
datasetType.name* | string | Min. length: 3 |
datasetType.version* | string | Min. length: 1 |
datasetType.displayName* | string | Min. length: 3 |
installTargets* | array | Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
messages* | array | |
messages[] | string |
Type BrokenImportListing (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
meta* | object | Inherits: lib.BrokenImportListingMeta |
meta.count* | integer | Number of records in the result |
meta.before | string | |
meta.after | string | |
meta.user | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
meta.limit | integer | |
meta.offset | integer | |
results* | array | |
results[] Broken Import Details | object | Inherits: object |
results[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
results[].owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
results[].datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput |
results[].datasetType.name* | string | Min. length: 3 |
results[].datasetType.version* | string | Min. length: 1 |
results[].datasetType.displayName* | string | Min. length: 3 |
results[].installTargets* | array | Unique items: Yes |
results[].installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
results[].messages* | array | |
results[].messages[] | string |
Type BrokenImportListingMeta (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
count* | integer | Number of records in the result |
before | string | |
after | string | |
user | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
limit | integer | |
offset | integer |
Type ConflictError (object)
The request could not be completed due to a conflict with the current state of the resource.
If you submitted a resource, that resource may already exist.
Discriminator: status
Discriminator value: conflict
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "conflict",
"message": "Target resource already exists and cannot be overwritten."
}
Type DatasetCharacteristics (any)
Any-typed for compatibility with JaxRS and RAML.
Actual schema definitions are available at:
Inherits: any
Type DatasetContact (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
name* | string | Min. length: 3 Max. length: 300 |
isPrimary | boolean | |
string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 | |
affiliation | string | Max. length: 4000 |
city | string | Max. length: 200 |
state | string | Max. length: 200 |
country | string | Max. length: 200 |
address | string | Max. length: 1000 |
Type DatasetCreationDate (datetime)
Timestamp of the creation of the dataset
Inherits: datetime
Type DatasetDependency (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
resourceVersion* | string | Min. length: 1 Max. length: 50 |
Type DatasetDescription (string)
Longform description of the dataset.
Inherits: string
Type DatasetDetails (object)
Details about a specific singular dataset.
Inherits: lib.DatasetMetaBase
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes | ||||||||||||
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
dependencies* | array | Unique items: Yes | ||||||||||||
dependencies[] Dataset Dependency | object | Inherits: object | ||||||||||||
dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 | ||||||||||||
dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 | ||||||||||||
dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 | ||||||||||||
contacts | array | Unique items: Yes | ||||||||||||
contacts[] Dataset Contact | object | Inherits: object | ||||||||||||
contacts[].name* | string | Min. length: 3 Max. length: 300 | ||||||||||||
contacts[].isPrimary | boolean | |||||||||||||
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 | ||||||||||||
contacts[].affiliation | string | Max. length: 4000 | ||||||||||||
contacts[].city | string | Max. length: 200 | ||||||||||||
contacts[].state | string | Max. length: 200 | ||||||||||||
contacts[].country | string | Max. length: 200 | ||||||||||||
contacts[].address | string | Max. length: 1000 | ||||||||||||
description | string | Longform description of the dataset. Inherits: string | ||||||||||||
hyperlinks | array | Unique items: Yes | ||||||||||||
hyperlinks[] Dataset Hyperlink | object | Inherits: lib.DatasetHyperlink | ||||||||||||
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 | ||||||||||||
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 | ||||||||||||
hyperlinks[].description | string | Max. length: 4000 | ||||||||||||
hyperlinks[].isPublication | boolean | |||||||||||||
organisms | array | Unique items: Yes | ||||||||||||
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation | ||||||||||||
publications | array | Unique items: Yes | ||||||||||||
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication | ||||||||||||
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 | ||||||||||||
publications[].citation | string | Min. length: 3 Max. length: 2000 | ||||||||||||
publications[].isPrimary | boolean | |||||||||||||
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
properties | ||||||||||||||
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
owner.firstName | string | |||||||||||||
owner.lastName | string | |||||||||||||
owner.email | string | |||||||||||||
owner.organization | string | |||||||||||||
importMessages | array | Log lines from the import process. These messages will be warnings and/or validation errors. | ||||||||||||
importMessages[] | string | |||||||||||||
shares | array | Array of share offers that have been created by the owner of this dataset to share it with other users. | ||||||||||||
shares[] Dataset Share Offer | object | Inherits: lib.ShareOffer | ||||||||||||
shares[].recipient* | object | Inherits: lib.ShareOfferRecipient | ||||||||||||
shares[].recipient.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
shares[].recipient.firstName | string | |||||||||||||
shares[].recipient.lastName | string | |||||||||||||
shares[].recipient.organization | string | |||||||||||||
shares[].recipient.email | string | |||||||||||||
shares[].status* | string | Enum:
Inherits: lib.ShareOfferAction | ||||||||||||
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
datasetType.name* | string | Min. length: 3 | ||||||||||||
datasetType.version* | string | Min. length: 1 | ||||||||||||
datasetType.displayName* | string | Min. length: 3 | ||||||||||||
visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
status.import* | string | Import status of the dataset.
Enum:
Inherits: lib.DatasetImportStatus | ||||||||||||
status.install | array | |||||||||||||
status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: lib.DatasetInstallStatusEntry | ||||||||||||
status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status.install[].metaStatus* | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].metaMessage | string | |||||||||||||
status.install[].dataStatus | string | Enum:
Inherits: lib.DatasetInstallStatus | ||||||||||||
status.install[].dataMessage | string | |||||||||||||
created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
revisionHistory | array | |||||||||||||
revisionHistory[] Dataset Revision | object | Dataset revision history entry. Inherits: lib.DatasetRevision | ||||||||||||
revisionHistory[].action* | string | Enum:
Inherits: lib.DatasetRevisionAction | ||||||||||||
revisionHistory[].timestamp* | datetime | |||||||||||||
revisionHistory[].revisionId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
revisionHistory[].revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote | ||||||||||||
revisionHistory[].fileListUrl* | string | URL to the file listing for the revision entry. |
Type DatasetFileDetails (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
fileName* | string | |
fileSize* | integer | Size of the file in bytes. Format: int64 |
Type DatasetFileListing (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
upload* | object | Inherits: lib.DatasetZipDetails |
upload.zipSize* | integer | Format: int64 |
upload.contents* | array | |
upload.contents[] Decompressed File Info | object | Inherits: object |
upload.contents[].fileName* | string | |
upload.contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
install | object | Inherits: lib.DatasetZipDetails |
install.zipSize* | integer | Format: int64 |
install.contents* | array | |
install.contents[] Decompressed File Info | object | Inherits: object |
install.contents[].fileName* | string | |
install.contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
documents | array | |
documents[] Decompressed File Info | object | Inherits: object |
documents[].fileName* | string | |
documents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
Type DatasetHyperlink (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
url* | string | Min. length: 7 Max. length: 200 |
text* | string | Min. length: 3 Max. length: 300 |
description | string | Max. length: 4000 |
isPublication | boolean |
Type DatasetImportStatus (string)
Import status of the dataset.
Value | Description |
---|---|
queued | The dataset has not yet been processed and is waiting in the queue. |
in-progress | The dataset is currently being import processed. |
complete | The dataset has been processed and imported for installation. |
invalid | The dataset failed import validation. |
failed | The dataset import failed due to an internal server error. |
- queued
- in-progress
- complete
- invalid
- failed
Inherits: string
Type DatasetInstallStatus (string)
- running
- complete
- failed-validation
- failed-installation
- ready-for-reinstall
- missing-dependency
Inherits: string
Type DatasetInstallStatusEntry (object)
Entry in a list of install statuses for a dataset.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
metaStatus* | string | Enum:
Inherits: string |
metaMessage | string | |
dataStatus | string | Enum:
Inherits: string |
dataMessage | string |
Type DatasetListEntry (object)
Short entry with basic details about a dataset.
Inherits: object
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId | ||||||||||||
owner* | object | Details about the owner of a VDI dataset. Inherits: lib.DatasetOwner | ||||||||||||
owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
owner.firstName | string | |||||||||||||
owner.lastName | string | |||||||||||||
owner.email | string | |||||||||||||
owner.organization | string | |||||||||||||
datasetType* | object | Details about a specific dataset type. Inherits: lib.DatasetTypeOutput | ||||||||||||
datasetType.name* | string | Min. length: 3 | ||||||||||||
datasetType.version* | string | Min. length: 1 | ||||||||||||
datasetType.displayName* | string | Min. length: 3 | ||||||||||||
visibility* | string | Enum:
Inherits: lib.DatasetVisibility | ||||||||||||
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName | ||||||||||||
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin | ||||||||||||
installTargets* | array | Project IDs for projects the dataset record was submitted to. Unique items: Yes | ||||||||||||
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status* | object | Information about the import and install status of a dataset. Inherits: lib.DatasetStatusInfo | ||||||||||||
status.import* | string | Import status of the dataset.
Enum:
Inherits: string | ||||||||||||
status.install | array | |||||||||||||
status.install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: object | ||||||||||||
status.install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
status.install[].metaStatus* | string | Enum:
Inherits: string | ||||||||||||
status.install[].metaMessage | string | |||||||||||||
status.install[].dataStatus | string | Enum:
Inherits: string | ||||||||||||
status.install[].dataMessage | string | |||||||||||||
shares* | array | |||||||||||||
shares[] Dataset Listing Share Info | object | Inherits: lib.DatasetListShareUser | ||||||||||||
shares[].userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId | ||||||||||||
shares[].firstName* | string | |||||||||||||
shares[].lastName* | string | |||||||||||||
shares[].organization* | string | |||||||||||||
shares[].accepted* | boolean | |||||||||||||
fileCount* | integer | Number of files uploaded for this dataset. | ||||||||||||
fileSizeTotal* | integer | Sum of the sizes of all the files uploaded for this dataset. Format: int64 | ||||||||||||
created* | datetime | Timestamp of the creation of the dataset Inherits: datetime | ||||||||||||
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName | ||||||||||||
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution | ||||||||||||
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary | ||||||||||||
description | string | Longform description of the dataset. Inherits: string | ||||||||||||
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: lib.DatasetSourceUrl | ||||||||||||
originalId | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
Type DatasetListShareUser (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
firstName* | string | |
lastName* | string | |
organization* | string | |
accepted* | boolean |
Type DatasetMetaBase (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
dependencies* | array | Unique items: Yes |
dependencies[] Dataset Dependency | object | Inherits: object |
dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
description | string | Longform description of the dataset. Inherits: string |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
Type DatasetName (string)
User-provided name for the dataset.
Min. length: 3
Max. length: 1024
Inherits: string
Type DatasetObjectPurgeRequestBody (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
Type DatasetOrigin (string)
String representing the origin of the dataset. Examples include direct-upload
, nephele
, or galaxy
.
Min. length: 3
Max. length: 256
Inherits: string
Type DatasetOwner (object)
Details about the owner of a VDI dataset.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
firstName | string | |
lastName | string | |
string | ||
organization | string |
Type DatasetPatchRequestBody (object)
Request to update the metadata for a dataset.
Fields that are omitted will be ignored when updating the target dataset record.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
datasetType.name* | string | Min. length: 3 Max. length: 128 |
datasetType.version* | string | Min. length: 1 Max. length: 32 |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
visibility | string | Enum:
Inherits: lib.DatasetVisibility |
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
description | string | Longform description of the dataset. Inherits: string |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
properties |
Type DatasetPostMeta (object)
Inherits: lib.DatasetMetaBase
Model
Parameter | Type | Description |
---|---|---|
installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
dependencies* | array | Unique items: Yes |
dependencies[] Dataset Dependency | object | Inherits: object |
dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
description | string | Longform description of the dataset. Inherits: string |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
datasetType* | object | Inherits: lib.DatasetTypeInput |
datasetType.name* | string | Min. length: 3 Max. length: 128 |
datasetType.version* | string | Min. length: 1 Max. length: 32 |
visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
Type DatasetPostRequestBody (object)
HTTP POST request body requesting the creation of a dataset from the components included in the request.
For a request to be considered valid, it must contain exactly 1 of the optional parameters file
or url
. If a request body contains both a file
and a url
field value, the service will return a 400
error.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetMetaBase |
details.installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
details.installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
details.name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
details.summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
details.dependencies* | array | Unique items: Yes |
details.dependencies[] Dataset Dependency | object | Inherits: object |
details.dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
details.dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
details.dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.description | string | Longform description of the dataset. Inherits: string |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
details.datasetType* | object | Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
Type DatasetPostResponseBody (object)
Successful upload response.
This response does not mean the uploaded dataset has been made available on the target site(s). The upload must first be validated and installed into the target sites before the dataset will become available for use.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
Type DatasetProxyPostMeta (object)
Inherits: lib.DatasetPostMeta
Model
Parameter | Type | Description |
---|---|---|
installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
dependencies* | array | Unique items: Yes |
dependencies[] Dataset Dependency | object | Inherits: object |
dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
description | string | Longform description of the dataset. Inherits: string |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
datasetType* | object | Inherits: lib.DatasetTypeInput |
datasetType.name* | string | Min. length: 3 Max. length: 128 |
datasetType.version* | string | Min. length: 1 Max. length: 32 |
visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
createdOn Creation Date | datetime |
Type DatasetProxyPostRequestBody (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetPostMeta |
details.installTargets* | array | IDs of the projects this dataset is being submitted to. Unique items: Yes |
details.installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
details.name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: lib.DatasetName |
details.summary* | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: lib.DatasetOrigin |
details.dependencies* | array | Unique items: Yes |
details.dependencies[] Dataset Dependency | object | Inherits: object |
details.dependencies[].resourceIdentifier* | string | Min. length: 3 Max. length: 50 |
details.dependencies[].resourceDisplayName* | string | Min. length: 3 Max. length: 100 |
details.dependencies[].resourceVersion* | string | Min. length: 1 Max. length: 50 |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.description | string | Longform description of the dataset. Inherits: string |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.properties | any | Any-typed for compatibility with JaxRS and RAML. Actual schema definitions are available at: Inherits: any |
details.datasetType* | object | Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.visibility | string | Default value: "private" Enum:
Inherits: lib.DatasetVisibility |
details.createdOn Creation Date | datetime | |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
Type DatasetPublication (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
pubMedId* | string | Min. length: 3 Max. length: 30 |
citation | string | Min. length: 3 Max. length: 2000 |
isPrimary | boolean |
Type DatasetPutMetadata (object)
Request to update the metadata for a dataset.
Fields that are omitted will be ignored when updating the target dataset record.
Inherits: lib.DatasetPatchRequestBody
Model
Parameter | Type | Description |
---|---|---|
name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
datasetType.name* | string | Min. length: 3 Max. length: 128 |
datasetType.version* | string | Min. length: 1 Max. length: 32 |
shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
visibility | string | Enum:
Inherits: lib.DatasetVisibility |
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
description | string | Longform description of the dataset. Inherits: string |
publications | array | Unique items: Yes |
publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
publications[].citation | string | Min. length: 3 Max. length: 2000 |
publications[].isPrimary | boolean | |
hyperlinks | array | Unique items: Yes |
hyperlinks[] Dataset Hyperlink | object | Inherits: object |
hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
hyperlinks[].description | string | Max. length: 4000 |
hyperlinks[].isPublication | boolean | |
organisms | array | Unique items: Yes |
organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
contacts | array | Unique items: Yes |
contacts[] Dataset Contact | object | Inherits: object |
contacts[].name* | string | Min. length: 3 Max. length: 300 |
contacts[].isPrimary | boolean | |
contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
contacts[].affiliation | string | Max. length: 4000 |
contacts[].city | string | Max. length: 200 |
contacts[].state | string | Max. length: 200 |
contacts[].country | string | Max. length: 200 |
contacts[].address | string | Max. length: 1000 |
properties | any | When provided and non-empty, wholely replaces any previous dataset characteristics value. When provided as an empty object, removes the dataset's characteristics. Inherits: any |
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: string |
revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote |
Type DatasetPutRequestBody (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
details* | object | Metadata about the dataset being submitted. Inherits: lib.DatasetPatchRequestBody |
details.name | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
details.datasetType | object | Only allowed when transitioning from a none-type dataset into an actual dataset type. Inherits: lib.DatasetTypeInput |
details.datasetType.name* | string | Min. length: 3 Max. length: 128 |
details.datasetType.version* | string | Min. length: 1 Max. length: 32 |
details.shortName | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortName |
details.shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: lib.DatasetShortAttribution |
details.visibility | string | Enum:
Inherits: lib.DatasetVisibility |
details.summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: lib.DatasetSummary |
details.description | string | Longform description of the dataset. Inherits: string |
details.publications | array | Unique items: Yes |
details.publications[] Dataset Publication | object | Inherits: lib.DatasetPublication |
details.publications[].pubMedId* | string | Min. length: 3 Max. length: 30 |
details.publications[].citation | string | Min. length: 3 Max. length: 2000 |
details.publications[].isPrimary | boolean | |
details.hyperlinks | array | Unique items: Yes |
details.hyperlinks[] Dataset Hyperlink | object | Inherits: object |
details.hyperlinks[].url* | string | Min. length: 7 Max. length: 200 |
details.hyperlinks[].text* | string | Min. length: 3 Max. length: 300 |
details.hyperlinks[].description | string | Max. length: 4000 |
details.hyperlinks[].isPublication | boolean | |
details.organisms | array | Unique items: Yes |
details.organisms[] | string | Min. length: 3 Max. length: 200 Inherits: lib.OrganismAbbreviation |
details.contacts | array | Unique items: Yes |
details.contacts[] Dataset Contact | object | Inherits: object |
details.contacts[].name* | string | Min. length: 3 Max. length: 300 |
details.contacts[].isPrimary | boolean | |
details.contacts[].email | string | IMPORTANT: Required if Min. length: 5 Max. length: 4000 |
details.contacts[].affiliation | string | Max. length: 4000 |
details.contacts[].city | string | Max. length: 200 |
details.contacts[].state | string | Max. length: 200 |
details.contacts[].country | string | Max. length: 200 |
details.contacts[].address | string | Max. length: 1000 |
details.properties | any | When provided and non-empty, wholely replaces any previous dataset characteristics value. When provided as an empty object, removes the dataset's characteristics. Inherits: any |
details.origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: string |
details.revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote |
dataFiles | array | Dataset files to upload. This field is incompatible with the |
dataFiles[] | file | |
url | string | URL to a dataset file to upload. This field is incompatible with the |
docFiles | array | Files containing additional dataset documentation or meta info that is not part of the data itself. |
docFiles[] | file |
Type DatasetPutResponseBody (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
Type DatasetRevision (object)
Dataset revision history entry.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
action* | string | Enum:
Inherits: lib.DatasetRevisionAction |
timestamp* | datetime | |
revisionId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
revisionNote* | string | Note providing a reason and/or description for the revision. Min. length: 10 Max. length: 4096 Inherits: lib.DatasetRevisionNote |
fileListUrl* | string | URL to the file listing for the revision entry. |
Type DatasetRevisionAction (string)
- revise
Inherits: string
Type DatasetRevisionNote (string)
Note providing a reason and/or description for the revision.
Min. length: 10
Max. length: 4096
Inherits: string
Type DatasetShareOffer (object)
An offer to share (or un-share) a dataset with a single target user.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
action* | string | What action to take with the dataset share offer. Either A value of A value of Enum:
Inherits: lib.ShareOfferAction |
Type DatasetShareReceipt (object)
A receipt or response to a share offer of a dataset to a single user.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
action* | string | What action to take with acknowledging a dataset share offer. Either A value of A value of Enum:
Inherits: lib.ShareReceiptAction |
Type DatasetShortAttribution (string)
Min. length: 3
Max. length: 300
Inherits: string
Type DatasetShortName (string)
Min. length: 3
Max. length: 300
Inherits: string
Type DatasetSourceUrl (string)
URL of the dataset data source, if the dataset was uploaded via URL.
Inherits: string
Type DatasetStatusInfo (object)
Information about the import and install status of a dataset.
Inherits: object
Model
Parameter | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
import* | string | Import status of the dataset.
Enum:
Inherits: string | ||||||||||||
install | array | |||||||||||||
install[] Dataset Install Target Status | object | Entry in a list of install statuses for a dataset. Inherits: object | ||||||||||||
install[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID | ||||||||||||
install[].metaStatus* | string | Enum:
Inherits: string | ||||||||||||
install[].metaMessage | string | |||||||||||||
install[].dataStatus | string | Enum:
Inherits: string | ||||||||||||
install[].dataMessage | string |
Type DatasetSummary (string)
Brief summary of the dataset.
Min. length: 3
Max. length: 4000
Inherits: string
Type DatasetTypeInput (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
name* | string | Min. length: 3 Max. length: 128 |
version* | string | Min. length: 1 Max. length: 32 |
Type DatasetTypeOutput (object)
Details about a specific dataset type.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
name* | string | Min. length: 3 |
version* | string | Min. length: 1 |
displayName* | string | Min. length: 3 |
Type DatasetVisibility (string)
- private
- protected
- public
Inherits: string
Type DatasetZipDetails (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
zipSize* | integer | Format: int64 |
contents* | array | |
contents[] Decompressed File Info | object | Inherits: object |
contents[].fileName* | string | |
contents[].fileSize* | integer | Size of the file in bytes. Format: int64 |
Type Error (object)
Discriminator: status
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Type ErrorType (string)
- bad-request
- unauthorized
- forbidden
- not-found
- bad-method
- conflict
- gone
- invalid-input
- failed-dependency
- server-error
Inherits: string
Type FailedDependencyError (object)
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
dependency* | string |
Examples
{
"status": "failed-dependency",
"dependency": "google.com",
"message": "unexpected status code 403 from google.com"
}
Type ForbiddenError (object)
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
Type GoneError (object)
The request could not be completed due to the requested resource or its underlying data no longer being present on the server.
Discriminator: status
Discriminator value: gone
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "gone",
"message": "The target resource or its dependencies no longer exists."
}
Type InstallCleanupRequestBody (object)
Object controlling the install cleanup process and what datasets it should target.
Requesters should specify one of the fields all
or targets
to control what datasets will be cleaned up. If neither is specified, the endpoint will just run the reinstaller, unless skip-run
is set, in which case the endpoint will do nothing.
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
all | boolean | |
targets | array | Unique items: Yes |
targets[] Install Cleanup Target | object | Inherits: lib.InstallCleanupTarget |
targets[].datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
targets[].installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
Type InstallCleanupTarget (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
installTarget* | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: lib.InstallTargetID |
Type InstallTargetID (string)
Name or ID of a target VEuPathDB project, such as "PlasmoDB".
Min. length: 5
Max. length: 32
Inherits: string
Type InternalDatasetDetails (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
datasetType* | object | Details about a specific dataset type. Inherits: object |
datasetType.name* | string | Min. length: 3 |
datasetType.version* | string | Min. length: 1 |
datasetType.displayName* | string | Min. length: 3 |
owner* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
isDeleted* | boolean | |
origin* | string | String representing the origin of the dataset. Examples include Min. length: 3 Max. length: 256 Inherits: string |
created* | datetime | Timestamp of the creation of the dataset Inherits: datetime |
inserted* | datetime | |
name* | string | User-provided name for the dataset. Min. length: 3 Max. length: 1024 Inherits: string |
installTargets* | array | Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: string |
status* | string | |
importMessages* | array | |
importMessages[] | string | |
visibility* | string | Enum:
Inherits: string |
shortName | string | Min. length: 3 Max. length: 300 Inherits: string |
shortAttribution | string | Min. length: 3 Max. length: 300 Inherits: string |
summary | string | Brief summary of the dataset. Min. length: 3 Max. length: 4000 Inherits: string |
description | string | Longform description of the dataset. Inherits: string |
sourceUrl | string | URL of the dataset data source, if the dataset was uploaded via URL. Inherits: string |
syncControl | object | Inherits: lib.SyncControlRecord |
syncControl.sharesUpdateTime* | datetime | |
syncControl.dataUpdateTime* | datetime | |
syncControl.metaUpdateTime* | datetime | |
uploadFiles | array | |
uploadFiles[] | string | |
installFiles | array | |
installFiles[] | string |
Type MethodNotAllowedError (object)
The HTTP method used to request a resource is not allowed or configured by the server.
Discriminator: status
Discriminator value: bad-method
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "bad-method",
"message": "PUT requests are not permitted on this endpoint"
}
Type NotFoundError (object)
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "not-found",
"message": "the requested resource could not be found"
}
Type OrganismAbbreviation (string)
Min. length: 3
Max. length: 200
Inherits: string
Type PartialDate (string)
Subset of the RFC3339 format, requiring at least the 4 digit year, and may include additional precision, part by part. Each part must be 'complete' and include standard preceding segment delimiters.
Date segments that are omitted will be defaulted to the minimum valid value for that segment. For example, If only the year value is provided, the assumed remainder is -01-01T00:00:00.000Z
.
Examples:
2022
2022-03
2022-03-15
2022-03-15T16
2022-03-15T16:30
2022-03-15T16:30:12
2022-03-15T16:30:12Z
2022-03-15T16:30:12+04:00
2022-03-15T16:30:12.123Z
2022-03-15T16:30:12.123-06:00
Min. length: 4
Inherits: string
Type PluginListItem (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
displayName* | string | |
typeName* | string | |
typeVersion* | string | |
projects | array | Projects that this plugin is restricted to. An empty or absent list indicates that the plugin has no project restrictions and may be used on any site. |
projects[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: string |
Type ServerError (object)
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
requestId* | string |
Examples
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
Type ServiceMetadataBuildInfoOutput (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
gitTag* | string | |
gitCommit* | string | |
gitBranch* | string | |
gitUrl* | string | |
buildId* | string | |
buildNumber* | string | |
buildTime* | string |
Type ServiceMetadataResponseBody (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
buildInfo* | object | Inherits: object |
buildInfo.gitTag* | string | |
buildInfo.gitCommit* | string | |
buildInfo.gitBranch* | string | |
buildInfo.gitUrl* | string | |
buildInfo.buildId* | string | |
buildInfo.buildNumber* | string | |
buildInfo.buildTime* | string |
Type ShareOffer (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
recipient* | object | Inherits: lib.ShareOfferRecipient |
recipient.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
recipient.firstName | string | |
recipient.lastName | string | |
recipient.organization | string | |
recipient.email | string | |
status* | string | Enum:
Inherits: lib.ShareOfferAction |
Type ShareOfferAction (string)
- grant
- revoke
Inherits: string
Type ShareOfferEntry (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
datasetId* | string | VDI dataset identifier Pattern: ^[a-zA-Z0-9_-]+$ Inherits: lib.VdiId |
owner* | object | Details about the owner of a VDI dataset. Inherits: object |
owner.userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
owner.firstName | string | |
owner.lastName | string | |
owner.email | string | |
owner.organization | string | |
shareStatus* | string | Enum:
Inherits: lib.ShareOfferStatus |
datasetType* | object | Details about a specific dataset type. Inherits: object |
datasetType.name* | string | Min. length: 3 |
datasetType.version* | string | Min. length: 1 |
datasetType.displayName* | string | Min. length: 3 |
installTargets* | array | Unique items: Yes |
installTargets[] | string | Name or ID of a target VEuPathDB project, such as "PlasmoDB". Min. length: 5 Max. length: 32 Inherits: string |
Type ShareOfferRecipient (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
userId* | integer | VEuPathDB User ID Min. value: 1 Max. value: 9223372036854776000 Format: int64 Inherits: lib.UserId |
firstName | string | |
lastName | string | |
organization | string | |
string |
Type ShareOfferStatus (string)
- open
- accepted
- rejected
Inherits: string
Type ShareReceiptAction (string)
- accept
- reject
Inherits: string
Type SyncControlRecord (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
sharesUpdateTime* | datetime | |
dataUpdateTime* | datetime | |
metaUpdateTime* | datetime |
Type UnauthorizedError (object)
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string |
Examples
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
Type UnprocessableEntityError (object)
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: lib.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: lib.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Examples
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
Type UserId (integer)
VEuPathDB User ID
Min. value: 1
Max. value: 9223372036854776000
Format: int64
Inherits: integer
Type UserMetadata (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
quota* | object | Inherits: lib.UserQuotaDetails |
quota.limit* | integer | Max number of bytes a user is allowed to upload. Format: int64 |
quota.usage* | integer | Current number of bytes counted against the user's quota. Format: int64 |
Type UserQuotaDetails (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
limit* | integer | Max number of bytes a user is allowed to upload. Format: int64 |
usage* | integer | Current number of bytes counted against the user's quota. Format: int64 |
Type VdiId (string)
VDI dataset identifier
Pattern: ^[a-zA-Z0-9_-]+$
Inherits: string
Type Error (object)
Discriminator: status
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string |
Type ErrorType (string)
- bad-request
- unauthorized
- forbidden
- not-found
- bad-method
- invalid-input
- server-error
Inherits: string
Type BadRequestError (object)
Request could not be parsed or was otherwise unusable.
Discriminator: status
Discriminator value: bad-request
Inherits: error.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string |
Examples
{
"status": "bad-request",
"message": "malformed JSON"
}
Type UnauthorizedError (object)
Unauthenticated client requested a resource that requires authentication.
Discriminator: status
Discriminator value: unauthorized
Inherits: error.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string |
Examples
{
"status": "unauthorized",
"message": "users must be logged in to access this resource"
}
Type ForbiddenError (object)
Server understood the request but is refusing it.
Could be caused by incorrect instructions or an authenticated client requesting a resource or action that requires permissions that the client does not have assigned.
Discriminator: status
Discriminator value: forbidden
Inherits: error.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string |
Examples
{
"status": "forbidden",
"message": "the current user is not permitted to perform this action"
}
Type NotFoundError (object)
The requested resource was not found on this server.
Discriminator: status
Discriminator value: not-found
Inherits: error.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string |
Examples
{
"status": "not-found",
"message": "the requested resource could not be found"
}
Type MethodNotAllowedError (object)
The HTTP method used to request a resource is not allowed or configured by the server.
Discriminator: status
Discriminator value: bad-method
Inherits: error.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string |
Examples
{
"status": "bad-method",
"message": "PUT requests are not permitted on this endpoint"
}
Type UnprocessableEntityError (object)
The request payload or parameters are correctly structured but fail resource specific validation.
Discriminator: status
Discriminator value: invalid-input
Inherits: error.Error
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string | |
errors* | object | Additional properties: Yes |
errors.general* | array | Non-field specific errors. |
errors.general[] | string | |
errors.byKey* | object | Field specific errors Additional properties: Yes |
errors.byKey.//* | array | |
errors.byKey.//[] | string |
Examples
{
"status": "invalid-input",
"message": "JSON validation failed",
"errors": {
"general": [],
"byKey": {
"id": [
"Given ID value does not point to an existing record."
]
}
}
}
Type ServerError (object)
Model
Parameter | Type | Description |
---|---|---|
status* | string | Enum:
Inherits: error.ErrorType |
message* | string | |
requestId* | string |
Examples
{
"status": "server-error",
"message": "Datastore connection lost",
"requestId": "b296c3d9-4032-41b1-906e-c97ccfc447e3"
}
Type HealthResponse (object)
Health details about the service
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
status* | string | Status describes the overall service state. A status of "healthy" indicates that everything is running smoothly and all service dependencies are reachable and online. A status of "unhealthy" indicates that something is wrong with either this service or one or more of it's dependency services. Enum:
|
dependencies* | array | A list of external services that this service depends on and some details about them. |
dependencies[] | object | Inherits: DependencyStatus |
dependencies[].name* | string | Name of the external depdendency. |
dependencies[].reachable* | boolean | Whether or not the external service is reachable. |
dependencies[].online* | string | Whether or not the external service is online and available for requests. Enum:
|
info* | object | Additional properties: Yes |
info.threads* | integer | Min. value: 1 |
info.uptime* | string | |
info.uptimeMillis* | integer | Min. value: 1 Format: int64 |
Type DependencyStatus (object)
Inherits: object
Model
Parameter | Type | Description |
---|---|---|
name* | string | Name of the external depdendency. |
reachable* | boolean | Whether or not the external service is reachable. |
online* | string | Whether or not the external service is online and available for requests. Enum:
|