Create a policy.
Policies
Create a policy.
Create a policy in your Tyk Instance.
POST
Create a policy.
Authorizations
Api key
Body
application/json
Example:
"5ead7120575961000181867e"
Example:
true
Example:
false
Example:
false
Example:
"5ead7120575961000181867e"
Example:
false
Example:
0
Example:
"1655965189"
Example:
-1
Example:
"Swagger Petstore Policy"
Example:
"5e9d9544a1dcd60001d0ed20"
Example:
60
Defines the action to take on a Session in Redis after it expires. Valid values are "retain" and "delete".
Available options:
retain, delete Example:
"delete"
Duration in seconds to retain a Session in Redis after it expires. Used with post_expiry_action "retain". Set to -1 to retain indefinitely.
Example:
0
Example:
-1
Example:
3600
Example:
1000
Example:
-1
Example:
-1