# UploadedPhoto

A photo after upload_media.

Group: Objects.

## Fields

- `mediaId` (string, required): The new photo's id.
- `url` (string or null, required): The stored photo.
- `thumbUrl` (string or null, required): The 640 px thumbnail.
- `ownerType` (string, required): What the photo belongs to. One of `spot`, `product`, `collection`, `listing`.
- `ownerId` (string, required): The owner row's id.
- `caption` (string or null, required): Caption.
- `credit` (string or null, required): Photographer credit.
- `order` (number, required): Position in the owner's gallery.
- `contentType` (string, required): The stored file's type (image/webp after optimizing).
- `width` (number, required): Stored width in pixels.
- `height` (number, required): Stored height in pixels.
- `bytes` (number, required): Stored size in bytes.
- `originalBytes` (number, required): The uploaded file's size in bytes.
- `optimized` (boolean, required): false when the optimizer was unavailable and the metadata-stripped original was kept.
- `metadataStripped` (boolean, required): true when the upload carried EXIF, GPS, XMP or IPTC metadata (all removed).
- `thumbBytes` (number or null, required): The thumbnail's size in bytes.
- `capturedOn` (string or null, required): Capture date (YYYY-MM-DD), sent or read from the file.
- `warnings` (array of strings, optional): Notes about things the write accepted but you should look at (a plain http link). Present only when there are any.

## Used by

- [upload_media](https://developers.sceniq.earth/reference/upload_media.md)
