Update a media file to the dialogportal™ Media Archive.
A media in archive can be searched and updated based on fileName and folderPath fields. Fields - content, contentType and description are optional fields that can be updated.
Endpoint ID: | 9101 | ||||||||||||||||||||||
Method: | PUT | ||||||||||||||||||||||
URL: | /content/media | ||||||||||||||||||||||
Request body: | JSON data with information about the media to be updated.
Example: Update a single pixel image { "content": "R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==", "description" : "This is a media description.", "contentType": "image/gif", "fileName": "clear 1x1.gif", "folderPath": "Assets/Generic Images/Small" } | ||||||||||||||||||||||
Response body: |
Example { "url": "https://media.dialogportal.com/customer_name/assets/generic_images/small/clear_1x1.gif" } The URL format is:
The | ||||||||||||||||||||||
Status codes: | 200 | Media updated successfully. | |||||||||||||||||||||
404 | Media to be updated not found. | ||||||||||||||||||||||
400.1 | Content type not recognized | ||||||||||||||||||||||
400.2 | Media files may not be larger than 2MB |