update_image
Update visibility, TTL, or the private view link of a hosted image.
Caller must own it.
visibility flips the access level: "public" or "private".
Omit to leave unchanged.
ttl_seconds and permanent are mutually exclusive. permanent
clears the expiry so the image lives indefinitely. ttl_seconds sets
a new expiry relative to now (positive integer). Omitting both leaves
the current expiry unchanged.
rotate_view_secret issues a fresh private view link and invalidates
every link shared earlier for this image, so use it to un-share a
private image. For a private image the returned url is the current
view link.
Returns the updated image record. Raises image_not_found (404) when
the image is absent, expired, or owned by another user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_id | Yes | The hosted image to act on, identified by its UUID. | |
| permanent | No | Clear the expiry so the image lives indefinitely; mutually exclusive with ttl_seconds. | |
| visibility | No | New access level: 'public' or 'private'; omit to leave unchanged. | |
| ttl_seconds | No | New expiry in seconds from now; mutually exclusive with permanent. | |
| rotate_view_secret | No | Issue a fresh private view link and revoke every link shared earlier for this image. Use to un-share a private image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||