post https://distillery.pixlee.co/api/v2/media
Returns album_photo_id. Generally, most image types, gifs, as well as mp4s are allowed in the photo_uri. If the same image is created multiple times, the image properties will not change, but if additional products or categories are included they will be tagged.
{
// [Required]
"album_id": 9996319,
// [Required] A caption for the photo.
"title": "something something danger zone",
// [Required] Necessary if connected_user_id is omitted.
"email": "[email protected]",
// The username for the person who is posting this photo.
"username": "Dennis",
// [Required]
"photo_uri": "https://example.com/picture.jpg",
// [Optional] Optional content type parameter you may use if the photo_uri doesn't have an extension.
// Allowed values are: "image/gif", "image/jpeg", "image/jpg", "image/png", "image/webp",
// "video/mp4", "video/quicktime", "video/x-msvideo", "video/x-ms-wmv", "video/x-flv", "video/3gpp".
"content_type": "image/jpg",
// [Optional]
"avatar_url": "https://example.com/user-avatar.jpg",
// [Required]
"approved": true,
// [Optional] Not used if email is included.
"connected_user_id": 123456789,
// [Optional] Associates this photo with an ID you own. Usually a user ID.
"vendor_id": "your_own_identifier",
// [Optional] For adding product tags.
"product_skus": ["productA", "productB"],
// [Optional] Used to copy the content to category albums (case-sensitive).
"category_names": ["Clothing", "Shoes"],
// [Optional] For storing additional misc info.
"connected_user": { "shirt_size": "M" }
}