ConsistlyAPI
Rules

Replace the brand rule set

Bulk-replace operation: the request body becomes the authoritative rule set for the caller’s organisation. Previously persisted rules absent from the body are deleted. Maximum 50 rules per request.

PUT
/brand_rules
AuthorizationBearer <token>

Bearer API key. Brand Governance endpoints require brand:read or brand:write (plus narrower writes for specific resources).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PUT "https://example.com/brand_rules" \  -H "Content-Type: application/json" \  -d '{    "data": [      {        "type": "double_spaces"      }    ]  }'
{  "object": "list",  "data": [    {      "id": "string",      "object": "brand_rule",      "organization": "string",      "name": "string",      "type": "string",      "severity": "low",      "active": true,      "auto_fixable": true,      "pattern": "string",      "replacement": "string",      "created": "2019-08-24T14:15:22Z",      "updated": "2019-08-24T14:15:22Z"    }  ],  "has_more": true,  "url": "string"}
{  "error": {}}