Foundation Models Dataset Service API, gRPC: DatasetService.GetUploadDraftUrl
Written by
Updated at December 9, 2024
Returns an S3 presigned URL for dataset upload.
This method only applicable if the dataset size does not exceed 5GB.
gRPC request
rpc GetUploadDraftUrl (GetUploadDraftUrlRequest) returns (GetUploadDraftUrlResponse)
GetUploadDraftUrlRequest
{
"dataset_id": "string",
"size_bytes": "int64"
}
Field |
Description |
dataset_id |
string Required field. ID of the dataset to upload. |
size_bytes |
int64 Size in bytes of the dataset to upload. |
GetUploadDraftUrlResponse
{
"dataset_id": "string",
"upload_url": "string"
}
Field |
Description |
dataset_id |
string ID of the dataset. |
upload_url |
string S3 presigned URL for upload. |