Update plant main photo
hortusfox_update_plant_photoUpdate a plant's main preview photo by providing an external URL or moving the current photo to the gallery before replacement.
Instructions
Update the main preview photo of a plant. Set external=true and provide a photo URL to use an external image. Optionally move the current photo into the gallery first. Endpoint: /api/plants/photo/update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| photo | No | External photo URL (required when external=true). | |
| plant | Yes | The plant ID. | |
| external | No | If true, use an external photo URL (provide `photo`). Default false. | |
| move_to_gallery | No | If true, move the existing main photo into the plant gallery before replacing. |