Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview

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.

PUT/v1/projects/{projectId}/conversation-display-rules
Authorization
AuthorizationPersonal API key · headerrequired

Your personal API key from Settings > Personal API Keys, sent as Bearer <key>.

X-Organization-IdOrganization ID · headerrequired

The organization to act in. Copy it with Copy organization ID in the organization menu or the settings sidebar.

Path parameters
projectIdstringrequired
Request body
requiredapplication/json
rulesobject[]required

The complete ordered rule list. Replaces every existing rule; pass [] to clear them.

max items 50
Show properties
Array of object
patternstringrequired

JavaScript regular expression source, without slashes. Always runs with the g and m flags.

min length 1 · max length 2000
replacementstringrequired

Replacement text. Empty removes the match. Supports $1 and $<name>, and \n / \t escapes. Rendered as Markdown.

max length 2000
Responses
200

Response for status 200

rulesobject[]required
Show properties
Array of object
patternstringrequired

JavaScript regular expression source, without slashes. Always runs with the g and m flags.

min length 1 · max length 2000
replacementstringrequired

Replacement text. Empty removes the match. Supports $1 and $<name>, and \n / \t escapes. Rendered as Markdown.

max length 2000
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PUT 'https://api.judgmentlabs.ai/v1/projects/YOUR_PROJECT_ID/conversation-display-rules' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'X-Organization-Id: YOUR_ORGANIZATION_ID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "rules": [
    {
      "pattern": "string",
      "replacement": "string"
    }
  ]
}'
Response
{
  "rules": [
    {
      "pattern": "string",
      "replacement": "string"
    }
  ]
}

Was this page helpful?