Bulk Import Policies

Changed on

Bulk import multiple policies from JSON.

IDs from the import are ignored; new IDs will be generated for each policy. Returns a summary of successful and failed imports. Requires admin role.

Docs: Guide | API Reference

post/policies/bulk-import

Request

  • Base URL
    https://api.grayswan.ai
  • Auth
    none declared

Request body

Response

Successful Response

totalinteger required
successfulinteger required
failedinteger required

Changes

    • breaking

      the detail response's property type changed from array to string for status

    • info

      added the new optional request property policies/items/rule_block_messages

    • info

      added the non-success response with the status

    8 more changes in this revision