pub async fn replace_image(
client: &SmugMugClient,
image_uri: &str,
payload: &UploadPayload,
) -> Result<UploadResult>Expand description
Replace the file content of an existing image, identified by its image URI
(e.g. /api/v2/image/<key>). This uploads new bytes onto the existing
image record, keeping its album placement, keywords, and other metadata,
instead of creating a new image (which SmugMug rejects with 409 if an
image with the same filename already exists in the album).