post https://api.tetrascience.com/v1/uda/upload
This endpoint uploads a file to TetraScience Cloud. It requires a Cloud Data Connector (CDC) (Formerly known as a User-Defined Integration) and user-defined agent set up in the TetraScience Web UI. API users can use it to upload, manage their files, and trigger pipelines.
Maximum payload size: 500MB
Validations performed by this endpoint:
agentId
must be a valid ID of the user defined agent (UDA)- when
dataCategory
param isbatch
, paramfilePath
must be provided - when
dataCategory
param isstream
, paramfileName
must be provided - when
fileCategory
param isIDS
, paramids
must be provided in valid IDS form or IDS schema does not exist. Uploaded file must be valid IDS file for given IDS schema - param
sourceType
must contain only lower case alphanumerical characters and dashes - params
metadata
andtags
must contain only ASCII characters;tags
values cannot contain comma and values must be unique - params
metadata
andtags
together as JSON objects must have less than 1.5KB of text (1536 characters)
Error response examples
{
"statusCode": 400,
"error": "Bad Request",
"message": "child \"agentId\" fails because [\"agentId\" must be a valid GUID]",
"validation": {
"source": "payload",
"keys": [
"agentId"
]
}
}