Edit Website Images
website.edit_imagesAdds, replaces, or removes hosted images on an existing Carryo website without replacing its HTML. Reusing a path replaces that image without consuming another image slot; new paths are subject to the website image allowance. Returns hosted-image metadata and URLs. New paths appear in the page when referenced by its HTML. Pass attached images through imageFiles. For one attachment, assets needs only its relative website path; Carryo matches the attachment automatically. For multiple attachments, use fileIndex (0 for the first imageFiles entry). Do not invent file IDs or ask for a public URL when attachment upload is available. Known fileId references and fetchable HTTP(S) sourceUrl imports also work. Carryo imports and hosts its own copy. Base64 image bytes and data URLs are unsupported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | No | Optional image assets to add or replace. Each entry requires a relative website path. With one imageFiles attachment, path alone uses that attachment. Otherwise select exactly one source: fileIndex (zero-based imageFiles position), a known fileId, or a fetchable HTTP(S) sourceUrl. Never guess generated file IDs. Existing images are preserved when omitted; replacing an existing path does not use another slot. Base64 bytes and data URLs are unsupported. | |
| linkId | Yes | Carryo page link identifier to update | |
| imageFiles | No | Optional image attachments supplied through the host's file upload support. The host supplies file_id and download_url. Map each attachment to a website path in assets: with one attachment, path alone is sufficient; with multiple attachments, use fileIndex. The assistant does not need to know generated file IDs or download URLs. Temporary URLs are import sources, not hosted image URLs. Clients without file input support can omit this field. | |
| removeAssetPaths | No | Optional relative asset paths to remove from the page asset bundle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| forms | No | ||
| linkId | No | Carryo page link identifier | |
| status | No | ||
| message | No | ||
| guidance | No | ||
| shareUrl | No | Primary share URL | |
| assetUrls | No | URLs for added or replaced assets | |
| updatedAt | No | ISO-8601 update timestamp | |
| currentVersionNumber | No | ||
| publicationPerformed | No |