Rules

Bulk-import rules

Up to 10,000 rules in one request.

post/v1/rules/import

Request

  • Base URL: https://www.layercall.com
  • URL: https://www.layercall.com/v1/rules/import
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Request body

rulesobject[] required

Response

Success

actionstring
duplicatesinteger
duplicates_in_fileinteger
importedinteger

Example response

{
  "action": "merge",
  "by_kind": {
    "domain": 3
  },
  "imported": 3
}

Changes

No recorded changes to this operation across all 1 revision of this API.