Authorization: Bearer ********************
{
"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
}
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
}'
{
"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
}