🚀 Version 2.0 is now live! See our changelog for details
cURL
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.
Bearer <token>
<token>
The body is of type object.
object
Show child attributes