Gotipath Docs
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
  1. Prefetch
  • Distribution
    • Delete CDN Distribution
      DELETE
    • Create CDN Distribution
      POST
    • Update CDN Distribution
      PUT
    • Get All CDN Distributions
      GET
    • Get Distribution
      GET
    • Distribution Verify
      POST
  • Headers
    • Response headers
      POST
    • Create Headers
      POST
    • Request Headers
      POST
    • List
      GET
  • origin
    • Get All Origins
      GET
    • Create Origins
      POST
    • Origin Batch update
      POST
    • Update Origins
      PUT
    • Delete Origins
      DELETE
  • SSL Certificates
    • Attach Certificate to Distribution
      PUT
    • Delete Certificate
      DELETE
    • Get All Certificates
      GET
    • Create Certificate
      POST
    • Revoke Certificate from Distribution
      DELETE
  • Let's Encrypt
    • Let's Encrypt Certificate
      POST
    • Request Let's Encrypt Certificate for Distribution
      POST
  • Cache Controls
    • Create Cache Control
      POST
    • Update Cache Control
      PUT
    • Delete Cache Rules
      DELETE
    • Get Cache Control
      GET
    • Get All Cache Conrols
      GET
  • Access Controls
    • Create Access Control
    • Update Access Control
    • Delete Access Control
    • Token Reset
    • Get All Access Controls
    • Details
  • Prefetch
    • Create Prefetch
      POST
  • Purge
    • Purge
  • usages
    • Volume usage
    • Volume usage Copy
  • Traffic Usage
    • Get Bandwidth Usage
    • Get Volume Usage
    • Get Request Number Usage
  1. Prefetch

Create Prefetch

Developing
POST
https://apistream.gotipath.com/v1/distributions/858a4a68-6308-4d25-898b-6c42f77849e9/prefetches
Last modified:2023-09-19 14:46:20
Maintainer:Not configured
The tool prepopulates files to a CDN before user`s request. Recommended for files bigger than 200MB. API calls related to prefetch are rate and size limited. See Prefetch Calls Limiting for details.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Example
{
    "paths": [
        "hell.jgp"
    ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apistream.gotipath.com/v1/distributions/858a4a68-6308-4d25-898b-6c42f77849e9/prefetches' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "paths": [
        "hell.jgp"
    ]
}'

Responses

🟢202Accepted
application/json
Body

Example
{}
Modified at 2023-09-19 14:46:20
Previous
Details
Next
Purge
Built with