---
search:
  tags:
    - administration
    - PATCH
seo:
  description: >-
    Partially updates an existing IMAP email account. Only… Reference for the
    PATCH /administration/email-accounts/{id} endpoint in the Leadtime Public
    API API.
sidebar:
  badge: PATCH
  label: Partially update IMAP email account
title: Partially update IMAP email account
type: openapi-operation
---
Partially updates an existing IMAP email account. Only the fields you provide will be updated; all other fields remain unchanged.

**Important Restrictions:**
- Only IMAP/SMTP accounts can be updated via API
- Attempting to update OAuth accounts (Google, Office365) will result in a 403 Forbidden error
- OAuth accounts must be updated through the web application for security reasons

**Update Process:**
- Provide only the fields you want to update
- Fields not provided will retain their current values
- You can update individual settings (e.g., just the SMTP password) without changing other fields
- Email address can be changed (must remain unique within workspace)

**Common Use Cases:**
- Update password after expiration
- Change server hostname or port
- Update display name
- Modify individual IMAP or SMTP settings

**Validation:**
- Only provided fields are validated
- Email must be unique if changed
- Port values must be between 1-65535 if provided

**Response:**
- Returns the updated account with all details (excluding passwords)

<Operation source="api-reference" id="emailaccountscontroller-patchemailaccount" />
