---
search:
  tags:
    - administration
    - PUT
seo:
  description: >-
    Fully updates an existing IMAP email account. This is a… Reference for the
    PUT /administration/email-accounts/{id} endpoint in the Leadtime Public API
    API.
sidebar:
  badge: PUT
  label: Update IMAP email account
title: Update IMAP email account
type: openapi-operation
---
Fully updates an existing IMAP email account. This is a full replacement operation - all fields must be provided.

**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:**
- All fields must be provided (this replaces the entire account configuration)
- Email address can be changed (must remain unique within workspace)
- Server settings (IMAP/SMTP) can be updated
- Passwords can be updated by providing new values

**Validation:**
- Same validation rules apply as for account creation
- Email must be unique if changed
- All required fields must be present

**Response:**
- Returns the updated account with all details (excluding passwords)
- Account status may change based on new configuration

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