curl --location --request POST 'https://api.vidinfra.com/distributions/165b90c6-217d-499c-93d7-e54f3b7df670/origins' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"name": "tenbyte-origin",
"type": "s3",
"endpoint": "https://s3.ap-southeast-1-sojeb.amazonaws.com",
"bucket": "tenbyte-vod-files",
"region": "ap-southeast-1",
"access_key": "AKIA************",
"secret_key": "***************",
"protocol": "https", // "http" or "https"
"use_path_style": false // Needed for MinIO or self-hosted S3
},
{
"name": "tenbyte-origin",
"type": "s3",
"endpoint": "https://s3.ap-southeast-2-sojeb.amazonaws.com",
"bucket": "tenbyte-vod-files",
"region": "ap-southeast-1",
"access_key": "AKIA************",
"secret_key": "***************",
"protocol": "https", // "http" or "https"
"use_path_style": false // Needed for MinIO or self-hosted S3
}
]'