PUT odata/Media(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

Updates all properties of a single Media object.

Request Information

Request body formats

application/json, text/json

Sample:
{
    "MediaID":"ae07a0d8-af1d-4ffa-a381-dc2cbe785ffa",
    "FilePath":"~/Photos/SampleSite/Pictures/long_beach_2_800x600.jpg",
    "FileType":"image/jpeg",
    "Type":"Photo",
    "Title":"New Media Title",
    "MediaCategoryID":"5bbf0165-8227-4913-a55c-830ca83e37f8",
    "IsPublic":true,
    "SiteName":"SampleSite"    
}
Important Note: All other, not specified properties will be erased for that Media object. For incremental updates please use PATCH Api.

Response Information

HTTP/1.1 204 No Content