Generate a request to upload an image or PDF file to be the new preview for one or more Assets. Supported preview image formats include: GIF, JPG, PNG, and TIFF.
If a PDF file is uploaded to be the preview for a document Asset, then the PDF will also be displayed in the Asset Detail page as the multi-page PDF preview.
After submitting the request to replace an Asset preview,
The user replacing the Asset previews must be granted the Replace Mezzanine and Upload User Role Permissions and View Security Template Permission on the Assets being updated.
For Federated Assets, if user provides optional contentPaths key in the request body, then files referenced in the contentPaths >
The Request Body must be a JSON object.
Successful operation
Invalid status value
Unauthorized. Missing Authorization or AccessToken or expired token
Forbidden. Missing X-API-key
{- "fileIds": [
- "7d6f4e30-f423-11e9-8071-89c0c4052141"
], - "filename": "Preview.jpg",
- "filesize": 1024,
- "contentPaths": {
- "imagePreview": "<relativePath>",
- "imageThumb": "<relativePath>",
- "videoProxy": "<relativePath>"
}
}
{- "message": "Message sent successfully",
- "status": "string"
}