POST api/MediaLibrary/Update
Request Information
URI Parameters
None.
Body Parameters
UpdateMediaRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Tags | string |
None. |
|
| Category | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": "11565305-8bf8-44e6-b6e0-a931bf482a0f",
"name": "sample string 2",
"tags": "sample string 3",
"category": 4
}
application/xml, text/xml
Sample:
<UpdateMediaRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Media"> <Category>4</Category> <Id>11565305-8bf8-44e6-b6e0-a931bf482a0f</Id> <Name>sample string 2</Name> <Tags>sample string 3</Tags> </UpdateMediaRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
MediaAssetDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| FileId | globally unique identifier |
None. |
|
| Url | string |
None. |
|
| ContentType | string |
None. |
|
| SizeBytes | integer |
None. |
|
| Width | integer |
None. |
|
| Height | integer |
None. |
|
| Category | integer |
None. |
|
| CategoryName | string |
None. |
|
| Tags | string |
None. |
|
| CreatedTime | date |
None. |
|
| UsageCount | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "6ef0d2b7-765e-44ec-8afe-fe410045934a",
"name": "sample string 2",
"fileId": "a6d57bc6-684a-485a-a07e-c8b50e9ced6d",
"url": "sample string 4",
"contentType": "sample string 5",
"sizeBytes": 6,
"width": 1,
"height": 1,
"category": 7,
"categoryName": "sample string 8",
"tags": "sample string 9",
"createdTime": "2026-11-27T01:43:46.660119+07:00",
"usageCount": 11
}
application/xml, text/xml
Sample:
<MediaAssetDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Response.Media"> <Category>7</Category> <CategoryName>sample string 8</CategoryName> <ContentType>sample string 5</ContentType> <CreatedTime>2026-11-27T01:43:46.660119+07:00</CreatedTime> <FileId>a6d57bc6-684a-485a-a07e-c8b50e9ced6d</FileId> <Height>1</Height> <Id>6ef0d2b7-765e-44ec-8afe-fe410045934a</Id> <Name>sample string 2</Name> <SizeBytes>6</SizeBytes> <Tags>sample string 9</Tags> <Url>sample string 4</Url> <UsageCount>11</UsageCount> <Width>1</Width> </MediaAssetDto>