Home
Updating media resources
To update a file uploaded to a blog, send an updated version of the file to the existing Media Resource's edit-media URI.
The types of files, and the maximum sizes of the files that can be uploaded to a blog is defined by the Blogs administrator. See the Administering Blogs section of the Lotus Connections information center for more details.
See Authenticating requests for information about how to authenticate the request.
Atom API request details
Method Resource URI Input representation PUT media resource Value of the href attribute of the <link> element that has a rel="edit-media" attribute value for each entry in the media link entries feed. file
Input
Provide a data file. For example, you can replace an existing picture with a new picture by specifying a new JPEG file as the POST data. Also specify the content type of the file. For example, if the file has a JPEG extension, specify the content type as follows:Content-type: image/jpeg
Output
None. Returned HTTP Headers
- HTTP/1.1 200 OK
- Indicates that the file was successfully updated. If an error occurs, this header will contain one of the error codes below.
Error codes
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Related reference