Skip to main content
POST
/
cdn
/
resources
/
{resource_id}
/
prefetch
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
client.cdn.resources.prefetch(
    resource_id=0,
    paths=["/test.jpg", "test1.jpg"],
)
This response does not have an example.

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

resource_id
integer
required

CDN resource ID.

Body

application/json
paths
string[]
required

Paths to files that should be pre-populated to the CDN.

Paths to the files should be specified without a domain name.

Example:
["/test.jpg", "test1.jpg"]

Response

Successful.

I