Upsert an Instance
PUT/policy-svc/instance/:instanceId
Allows user to upsert a new policy instance based on a template.
Request
Path Parameters
instanceId stringrequired
Instance ID
- application/json
Body
required
Upsert Instance Request
instance
object
blocklistParameters
object
blockedIPs string[]
endpoint string
id string
rateLimitParameters
object
entity string
Possible values: [userId
, ip
]
maxRequests integer
scope string
Possible values: [endpoint
, global
]
timeWindow string
templateId stringrequired
Possible values: [rate-limit
, blocklist
]
Responses
- 200
- 400
- 401
- 500
Instance upserted successfully
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
error string
{
"error": "string"
}
Loading...