Skip to main content

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

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

Instance upserted successfully

Schema

    object

Loading...