Skip to main content
POST
/
distributions
/
{distributionID}
/
prefetches
Create Prefetch
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
}

Authorizations

Authorization
string
header
required

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

Path Parameters

distributionID
string
required

Body

application/json

The body is of type object.

Response

201 - application/json
data
object
required
message
string
required
success
boolean
required