Skip to content
Last updated

🔨 In Development — This section is still being developed and may change.
Attach a behavior rule to an assistant with custom priority and character limits.
POSThttps://api.freddy.aitronos.com/v1/assistants/{assistant_id}/rules

Path Parameters

assistant_id string required

The unique identifier of the assistant to attach the rule to.

Request Body

rule_id string required

The unique identifier of the rule to attach.

priority integer optional · Defaults to 1

Priority order for rule application (1 = highest priority).

character_limit integer optional

Maximum characters this rule can contribute to the response.

is_active boolean optional · Defaults to true

Whether the rule attachment is active.

Bash
curl https://api.freddy.aitronos.com/v1/assistants/asst_abc123/rules \
  -X POST \
  -H "Authorization: Bearer $FREDDY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "rule_id": "rule_abc123",
    "priority": 1,
    "character_limit": 500,
    "is_active": true
  }'

Response

Returns

Confirmation of successful rule attachment with details.

{
  "rule_id": "rule_abc123",
  "assistant_id": "asst_abc123",
  "priority": 1,
  "character_limit": 500,
  "is_active": true,
  "attached_at": "2024-01-15T10:30:00Z",
  "attached_by": "user_abc123"
}