PUThttps://api.aitronos.com/v1/rules/{rule_id}/attachments/{entity_type}/{entity_id}
Update the configuration of an entity attachment (priority, character limit, or active status).
rule_id string required
The rule ID
entity_type string required
Entity type: assistant, user, model, vector_store, organization
entity_id string required
The entity ID
priority integer optional
Priority for rule application (1-100)
character_limit integer optional
Character limit for this attachment (100-50000)
is_active boolean optional
Whether the attachment is active
Returns the updated attachment object.
Bash
- Bash
- Python
- JavaScript
curl -X PUT "https://api.aitronos.com/v1/rules/rule_a1b2c3d4/attachments/assistant/asst_abc123" \
-H "X-API-Key: $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"priority": 90,
"is_active": true
}'Response 200 OK
{
"success": true,
"data": {
"rule_id": "rule_a1b2c3d4",
"entity_type": "assistant",
"entity_id": "asst_abc123",
"priority": 90,
"character_limit": 1000,
"is_active": true,
"created_at": "2025-01-17T12:00:00Z",
"updated_at": "2025-01-17T13:30:00Z"
}
}