Replace conversation display rules
Replace a project’s conversation display rules with a complete ordered list, applied in order to chat message text in Conversation View and span chat views. Display only. Patterns that backtrack catastrophically are rejected.
/v1/projects/{projectId}/conversation-display-rulesAuthorizationPersonal API key · headerrequiredYour personal API key from Settings > Personal API Keys, sent as Bearer <key>.
X-Organization-IdOrganization ID · headerrequiredThe organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.
projectIdstringrequiredapplication/jsonrulesobject[]requiredThe complete ordered rule list. Replaces every existing rule; pass [] to clear them.
Show propertiesHide properties
objectpatternstringrequiredJavaScript regular expression source, without slashes. Always runs with the g and m flags.
replacementstringrequiredReplacement text. Empty removes the match. Supports $1 and $<name>, and \n / \t escapes. Rendered as Markdown.
Response for status 200
rulesobject[]requiredShow propertiesHide properties
objectpatternstringrequiredJavaScript regular expression source, without slashes. Always runs with the g and m flags.
replacementstringrequiredReplacement text. Empty removes the match. Supports $1 and $<name>, and \n / \t escapes. Rendered as Markdown.