Migrating to v4

December 17, 2026

— Immich Team

How to migrate from Immich v3 to Immich v4, and what breaking changes where introduced as part of Immich v4.


The purpose of this document is to enumerate all the breaking changes that were introduced as part of Immich v4 and provide migration steps when available.

Breaking changes

This release includes a few breaking changes and deprecations. We are also officially migrating to PostgreSQL 19, although that is not required just yet. This post aims to document, explain, and guide users as they upgrade to v4. Found something missing? Let us know and we’ll get it fixed.

PostgreSQL 19

For upgrading to postgres 19, first bring down Immich and postgres. Then, replace the database container image with its -upgrade equivalent for the new version you want to upgrade to (we recommend pg19):

[...]

  database:
    container_name: immich_postgres
-   image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
+   image: ghcr.io/immich-app/postgres:19-vectorchord1.5.0-upgrade@sha256:0ea64a51f0357fe92ddcc1883c5a84787de27624000d0557c781bff3fad46e1e
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
[...]

Once done, postgres should start up with version 19 and Immich should be able to connect.

Optionally, once the upgrade is complete, you may choose the image without the -upgrade tag. This saves on some storage and can be considered a cleanup, but is not necessary and running with the -upgrade image is perfectly fine.


System config and environment variables

Immich now supports overwriting any admin config setting with an environment variable. They are all prefixed with IMMICH_CONFIG_ and then follow the path of the setting in its JSON format (c.f. the JSON config file).

As part of this, we are also aligning existing environment variables. The following have been deprecated but are still supported by v4.

  • IMMICH_LOG_LEVEL, replaced by IMMICH_CONFIG_LOGGING_LEVEL
  • IMMICH_MACHINE_LEARNING_ENABLED, replaced by IMMICH_CONFIG_MACHINE_LEARNING_ENABLED
  • IMMICH_MACHINE_LEARNING_URL, replaced by IMMICH_CONFIG_MACHINE_LEARNING_URLS

Layered system config

Immich allows overwriting only specific fields with the optional JSON config file. This used to work by using default values for everything that has not been set in the file.

Now, Immich will look for an overwrite in the database first, and apply that for the setting if present. Further, admins can now change config settings in the web interface while a config file is in use, as long as the setting has not been specified in that file or through an environment variable


Mobile

Immich mobile apps on v2 are not supported by a v4 server anymore. Update to v3 or v4.


Helmet is enabled by default

IMMICH_HELMET_FILE now defaults to true, so the server sends the bundled helmet headers (CSP, HSTS, frame and cross-origin policies) unless it is set to false.

Breaking for setups that rely on those headers being absent: custom map styles need their hosts added through a custom helmet file, and embedding the web app in a frame on another origin is blocked. For more information on helmet, read here https://helmet.js.org.


Form bodies in requests

Immich used to accept form bodies, and somewhat parse it as JSON. This was never truly intended and comes with some security implications, so we've now disabled form body parsing for all endpoints except the ones that explicitly need it. When sending requests, make sure to include Content-Type: application/json.


Endpoints

Asset responses / AssetResponseDto

Endpoints that return assets have been updated with the following changes:

  • The resized property has been removed.

AssetMediaSize

The AssetMediaSize enum does not include original anymore. Use the dedicated original endpoint assets/:id/original.

updateAdminConfig / PUT /api/admin/config

The endpoint now also supports PATCH. The SDK will migrate in v5. In v6, support for PUT will be dropped.

Creating people / PersonCreateDto

The spec already specified the format needs to be YYYY-MM-DD but Immich still accepted full ISO datetime stamps, including a time. From now on, Immich will strictly validate birth dates and not accept datetime strings anymore.

allowUpload used to default to true, causing shared links to be created with uploading permissions by default. From now on, it defaults to false. If a shared link should allow uploading, allowUpload: true will need to be explicitly specified.

Nullable fields

The following fields now accept null. The SDK already types the responses as nullable too, but won't send null just yet. In v5 they will also return null. Start updating callers to send null instead of empty strings now.

  • UserResponseDto.name

  • UserResponseDto.profileImagePath

  • UserAdminResponseDto.name

  • UserAdminResponseDto.oauthId

  • UserAdminResponseDto.profileImagePath

  • UserAdminCreateDto.name

  • SessionResponseDto.deviceOS

  • SessionResponseDto.deviceType

  • AlbumResponseDto.description

  • AssetBulkUpdateDto.description

  • PersonOtherResponseDto.name

  • PeopleUserResponseDto.name

  • PeopleUserResponseDto.profileImagePath

  • PersonResponseDto.name

  • PersonResponseDto.thumbnailPath

  • UpdateAssetDto.description

  • SignUpDto.name

  • LoginResponseDto.name

  • LoginResponseDto.profileImagePath

  • PartnerResponseDto.name

  • PartnerResponseDto.profileImagePath

  • PersonCreateDto.name

  • PeopleUpdateItem.name

  • PersonUpdateDto.name

  • ServerVersionHistoryResponseDto.deviceOS

  • ServerVersionHistoryResponseDto.deviceType

  • SessionCreateResponseDto.deviceOS

  • SessionCreateResponseDto.deviceType

  • UpserUpdateMeDto.name

    \

\

Cheers,
The Immich Team