Skip to main content
POST
/
distributions
/
{distributionID}
/
origins
Create Origins
curl --request POST \
  --url https://api.tenbyte.io/v1/cdn/distributions/{distributionID}/origins \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
"[\n    // {\n    //     \"bucket\": \"tenbyte-vod-filkkkk\",\n    //     \"region\": \"ap-southeast-1ww\",\n    //     \"access_key\": \"AKIA*********^&^&\",\n    //     \"secret_key\": \"***************\",\n    //     \"name\": \"tenbyte-origin-10\",\n    //     \"type\": \"custom\",\n    //     \"endpoint\": \"https://s3.ap66-southeast-1.amazonaws.re\",\n    //     \"id\": \"4923cdaa-5c38-46d1-b525-e2aad01d231d\"\n    // }\n    // {\n    //     \"bucket\": \"tenbyte-vod-filkkkk\",\n    //     \"region\": \"ap-southeast-1ww\",\n    //     \"access_key\": \"AKIA*********^&^&\",\n    //     \"secret_key\": \"***************\",\n    //     \"name\": \"tenbyte-origin-10\",\n    //     \"type\": \"custom\",\n    //     \"endpoint\": \"https://s3.ap66-southeast-1.amazonaws.comsss\"\n    // },\n    {\n        \"bucket\": \"tenbyte-vod-files\",\n        \"region\": \"tenbyte-origin-416-1\",\n        \"access_key\": \"AKIA************99\",\n        \"secret_key\": \"***************\",\n        \"name\": \"tenbyte-origin-416-1\",\n        \"type\": \"custom\",\n        \"endpoint\": \"https://domain.com\"\n    }\n]"
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Authorization
string

Path Parameters

distributionID
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

The response is of type object.