Add Email Category
email_add_categoryReplace all categories on an email with specified ones. Organize your inbox by assigning category names to emails.
Instructions
✏️ Add categories to an email (requires user confirmation recommended)
Simpler alternative to email_update for managing email categories. This replaces all existing categories with the specified ones.
Args: email_id: The email ID to update account_id: Microsoft account ID categories: Category name(s) to apply (single string or list)
Returns: Updated email object
Raises: ValueError: If email_id is invalid ValidationError: If categories is empty or contains invalid values
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| email_id | Yes | ||
| account_id | Yes | ||
| categories | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||