🚀 Version 2.0 is now live! See our changelog for details
curl --request POST \
--url https://api.tenbyte.io/v1/cdn/distributions/{distributionID}/prefetches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paths": [
"/img/city.jpg",
"/img/*",
"/path/*",
"/static/*"
]
}
'{
"data": {
"paths": [
"/img/city.jpg",
"/img/*",
"/path/*",
"/static/*"
],
"id": "a4113eb9-8b17-455e-b984-a75b430c66e3"
},
"message": "Resource created successfully.",
"success": true
}curl --request POST \
--url https://api.tenbyte.io/v1/cdn/distributions/{distributionID}/prefetches \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"paths": [
"/img/city.jpg",
"/img/*",
"/path/*",
"/static/*"
]
}
'{
"data": {
"paths": [
"/img/city.jpg",
"/img/*",
"/path/*",
"/static/*"
],
"id": "a4113eb9-8b17-455e-b984-a75b430c66e3"
},
"message": "Resource created successfully.",
"success": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The body is of type object.