DELETEhttps://api.aitronos.com/v1/rules/{rule_id}/attachments/{entity_type}/{entity_id}
Remove an entity attachment from a rule. This performs a soft delete, preserving the audit trail.
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
Returns 204 No Content on success.
Bash
- Bash
- Python
- Python
- JavaScript
curl -X DELETE "https://api.aitronos.com/v1/rules/rule_a1b2c3d4/attachments/assistant/asst_abc123" \
-H "X-API-Key: $FREDDY_API_KEY"Response 204 No Content
4xx Error
{
"success": false,
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "The requested resource could not be found.",
"system_message": "Rule attachment not found",
"type": "client_error",
"status": 404,
"details": {
"rule_id": "rule_a1b2c3d4",
"entity_type": "assistant",
"entity_id": "asst_abc123"
},
"trace_id": "2fbbf3b6-51a1-4f1b-88e2-c00e8b52fbb8",
"timestamp": "2025-11-02T08:21:45Z"
}
}