v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
Synthetics

Get presigned URLs for uploading a test file

Get presigned URLs for uploading a file to a Synthetic test using multipart upload. Returns the presigned URLs for each part along with the bucket key that references the file.

post/api/v2/synthetics/tests/{public_id}/files/multipart-presigned-urls

Path parameters

public_idstring required
Example:abc-def-123

The public ID of the Synthetic test.

Request body

bucketKeyPrefix'api-upload-file' | 'browser-upload-file-step' required

The bucket key prefix indicating the type of file upload.

Example request

{
  "bucketKeyPrefix": "api-upload-file",
  "parts": [
    {
      "md5": "1B2M2Y8AsgTpgAmY7PhCfg==",
      "partNumber": 1
    }
  ]
}

Response

OK

bucketKeystring

The bucket key that references the uploaded file after completion.

Example response

{
  "bucketKey": "api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json",
  "multipart_presigned_urls_params": {
    "key": "org-123/api-upload-file/abc-def-123/2024-01-01T00:00:00_uuid.json",
    "upload_id": "upload-id-abc123",
    "urls": {
      "1": "https://storage.example.com/presigned-upload-url-part-1",
      "2": "https://storage.example.com/presigned-upload-url-part-2"
    }
  }
}