curl --request POST \
--url https://{tenant}/tyk/policies \
--header 'Content-Type: application/json' \
--header 'X-Tyk-Authorization: <api-key>' \
--data '
{
"_id": "5ead7120575961000181867e",
"access_rights": {},
"active": true,
"enable_http_signature_validation": false,
"graphql_access_rights": {},
"hmac_enabled": false,
"id": "5ead7120575961000181867e",
"is_inactive": false,
"key_expires_in": 0,
"last_updated": "1655965189",
"max_query_depth": -1,
"meta_data": {},
"name": "Swagger Petstore Policy",
"org_id": "5e9d9544a1dcd60001d0ed20",
"partitions": {
"acl": true,
"complexity": false,
"per_api": false,
"quota": true,
"rate_limit": true
},
"per": 60,
"quota_max": -1,
"quota_renewal_rate": 3600,
"rate": 1000,
"smoothing": {
"delay": 123,
"enabled": true,
"step": 123,
"threshold": 123,
"trigger": 123
},
"tags": [
"<string>"
],
"throttle_interval": -1,
"throttle_retry_limit": -1
}
'