Gotipath Docs
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
Stream
  • Documention
  • API Reference
CDN
  • Documention
  • API Reference
  1. Cache Controls
  • 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
    • Request Let's Encrypt Certificate for Distribution
  • 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
  • Purge
    • Purge
  • usages
    • Volume usage
    • Volume usage Copy
  • Traffic Usage
    • Get Bandwidth Usage
    • Get Volume Usage
    • Get Request Number Usage
  1. Cache Controls

Create Cache Control

Developing
POST
https://apistream.gotipath.com/v1/distributions/bb52605c-5bbc-41f4-af77-1c1bf12ec7d9/cache-rules
Last modified:2023-09-19 14:46:20
Maintainer:Not configured

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
X-Auth-ClientId
string 
required
Default:
ebe8bac0-eaef-4548-8b59-96c9ec38a22b
X-Auth-LibraryId
string 
required
Default:
89898172-d32b-49f8-a94a-bdf0c6ca1bd9
X-Auth-ApiKey
string 
required
Default:
pEBPYVUNMbP7uDsb0W2h3oTjpEqr32fFh/3TNUhvFcJt7/J/hyV+5LctVWONgzaw+w+PpQ
Body Params application/json
name
string 
required
ttl
integer 
required
match_type
string 
required
match
string 
required
never_cache
boolean 
required
ignore_client_no_cache
boolean 
required
ignore_origin_no_cache
boolean 
required
ignore_query_string
boolean 
required
priority
integer 
required
enabled_brotli
boolean 
required
enabled_gzip
boolean 
required
Example
{
    "name": "gotipath",
    "ttl": 3600,
    "match_type": "regex",
    "match": "^/*/hello",
    "never_cache": true,
    "ignore_client_no_cache": true,
    "ignore_origin_no_cache": true,
    "ignore_query_string": true,
    "priority": 1,
    "enable_brotli": true,
    "enable_gzip": true
}

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/bb52605c-5bbc-41f4-af77-1c1bf12ec7d9/cache-rules' \
--header 'X-Auth-ClientId;' \
--header 'X-Auth-LibraryId;' \
--header 'X-Auth-ApiKey;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "gotipath",
    "ttl": 3600,
    "match_type": "regex",
    "match": "^/*/hello",
    "never_cache": true,
    "ignore_client_no_cache": true,
    "ignore_origin_no_cache": true,
    "ignore_query_string": true,
    "priority": 1,
    "enable_brotli": true,
    "enable_gzip": true
}'

Responses

🟢201Created
application/json
Body
status
integer 
required
message
string 
required
result
object 
required
id
string 
required
customer_id
string 
required
distribution_id
string 
required
name
string 
required
match_type
string 
required
match
string 
required
priority
integer 
required
ttl
integer 
required
never_cache
boolean 
required
ignore_client_no_cache
boolean 
required
ignore_origin_no_cache
boolean 
required
ignore_query_string
boolean 
required
ignore_set_cookie
boolean 
required
enable_gzip
boolean 
required
enable_brotli
boolean 
required
created_at
string 
required
updated_at
string 
required
created_by
string 
required
updated_by
null 
required
success
boolean 
required
Example
{
    "status": 0,
    "message": "string",
    "result": {
        "id": "string",
        "customer_id": "string",
        "distribution_id": "string",
        "name": "string",
        "match_type": "string",
        "match": "string",
        "priority": 0,
        "ttl": 0,
        "never_cache": true,
        "ignore_client_no_cache": true,
        "ignore_origin_no_cache": true,
        "ignore_query_string": true,
        "ignore_set_cookie": true,
        "enable_gzip": true,
        "enable_brotli": true,
        "created_at": "string",
        "updated_at": "string",
        "created_by": "string",
        "updated_by": null
    },
    "success": true
}
Previous
Request Let's Encrypt Certificate for Distribution
Next
Update Cache Control
Built with