Skip to main content
POST
/
admin
/
policies
/
import
Import Policies
curl --request POST \
  --url https://{tenant}/admin/policies/import \
  --header 'Admin-Auth: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Data": [
    {
      "_id": "<string>",
      "access_rights": {},
      "active": true,
      "date_created": "2023-11-07T05:31:56Z",
      "hmac_enabled": true,
      "id": "<string>",
      "is_inactive": true,
      "key_expires_in": 123,
      "last_updated": "<string>",
      "max_query_depth": 123,
      "meta_data": {},
      "name": "<string>",
      "org_id": "<string>",
      "partitions": {
        "acl": true,
        "complexity": true,
        "per_api": true,
        "quota": true,
        "rate_limit": true
      },
      "per": 123,
      "quota_max": 123,
      "quota_renewal_rate": 123,
      "rate": 123,
      "smoothing": {
        "delay": 123,
        "enabled": true,
        "step": 123,
        "threshold": 123,
        "trigger": 123
      },
      "tags": [
        "<string>"
      ],
      "throttle_interval": 123,
      "throttle_retry_limit": 123
    }
  ],
  "Pages": 123
}
'
{
  "ID": "<string>",
  "Message": "<string>",
  "Meta": "<unknown>",
  "Status": "<string>"
}

Authorizations

Admin-Auth
string
header
required

Api key

Body

application/json
Data
object[] | null
Pages
integer

Response

OK

ID
string
Message
string
Meta
any
Status
string