Update 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 Administer Blogs section of the IBM Connections product documentation for more details.
See Authenticating requests for information about how to authenticate the request.
Table 1. 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 contains one of the error codes.
- HTTP/1.1 401 Unauthorized
- HTTP/1.1 404 Not Found
Parent topic
Work with media resourcesRelated reference
Retrieve a media resource
Media link content
});