update_credentials
Update Immich connection credentials when API key is rotated or server URL changes. Validates new credentials before applying, then persists them and hot-swaps the live connection.
Instructions
Update the Immich connection credentials. Use this when the API key has been rotated or the server URL changed. Validates credentials before applying. Side effect: persists new credentials to disk and hot-swaps the live connection.
Args:
base_url: Full Immich server URL including protocol (e.g. 'https://photos.example.com').
api_key: A valid Immich API key (generated in Immich > User Settings > API Keys).
Returns: JSON with success status, photo/video counts confirming access, and persistence path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | ||
| base_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |