Update an AI label rule
Renames or recolors the label, changes the condition, configures auto-draft, auto-reply and hideFromInbox. All fields are optional but at least one is required. In Emelia, AI features are paid with Emelia credits: each incoming email classified while the workspace has at least one rule, and each auto-draft, is debited from the Emelia account. Setting autoDraftEnabled or autoReplyEnabled to true never returns 402 PLAN_REQUIRED in Emelia.
Authorization
apiKey Your 48 character Emelia API key, the same as for the Emelia API, sent as is (a Bearer prefix is tolerated). Create it at https://v3.emelia.io/settings/api. Disabling a key can take up to 5 minutes to apply to the Inbox API.
In: header
Path Parameters
AI label rule id (not the label id).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
All optional, at least one field.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/ai-label-rules/cmrlacme0000000000000001" \ -H "Authorization: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "autoReplyEnabled": false, "hideFromInbox": true }'{ "rule": { "id": "cmrlacme0000000000000001", "label": { "id": "cmtgacme0000000000000002", "name": "Interested", "color": "#2563eb", "isAiLabel": true }, "condition": "The prospect shows interest: asks for a call, a demo, pricing or more information.", "autoDraftEnabled": true, "autoReplyEnabled": false, "autoReplyConfidenceThreshold": 85, "autoReplyDelayMinutes": 0, "autoReplyNotifyOnSend": true, "hideFromInbox": true, "createdAt": "2026-10-01T10:05:00.000Z", "updatedAt": "2026-10-02T16:40:00.000Z" }}