🚀 Version 2.0 is now live! See our changelog for details
🚀 Version 2.0 is now live! See our changelog for details
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]"
'{}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]"
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The body is of type object.
The response is of type object.