POST api/resources/tagupdate
Replaces that tags associated with a resource.
Request Information
URI Parameters
None.
Body Parameters
Arguments describing which resource to modify and the new list of tags.
ReplaceResourceTagsArgs| Name | Description | Type | Additional information |
|---|---|---|---|
| ResourceIdentifier |
The identifier for the resource |
globally unique identifier |
None. |
| ReplacementTags |
List of tags to associate with the resource. This list will replace all pre-existing tags for the resource. |
Collection of Pair of string [key] and string [value] |
None. |
Request Formats
application/json, text/json
{
"ResourceIdentifier": "b4952908-c17a-499c-b554-676f0fee327d",
"ReplacementTags": [
{
"Key": "sample string 1",
"Value": "sample string 2"
},
{
"Key": "sample string 1",
"Value": "sample string 2"
}
]
}
application/xml, text/xml
<ReplaceResourceTagsArgs xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResourceIdentifier>b4952908-c17a-499c-b554-676f0fee327d</ResourceIdentifier>
<ReplacementTags>
<KeyValuePairOfStringString />
<KeyValuePairOfStringString />
</ReplacementTags>
</ReplaceResourceTagsArgs>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
A structure describing the resource.
ResourceMetaData| Name | Description | Type | Additional information |
|---|---|---|---|
| ResourceIdentifier |
The identifier for the resource |
globally unique identifier |
None. |
| Application |
The application the resource belongs to |
string |
None. |
| OriginalFilename |
Original filename of the resource |
string |
None. |
| SizeInBytes |
Size in bytes of the resource |
integer |
None. |
| CreatedUtc |
DateTime when the resource was added to the system. |
date |
None. |
| LastAccessedUtc |
DateTime when the resource was last accessed. |
date |
None. |
| TimeToLiveAfterLastAccess |
Timespan the resource will remain in the repository after the last access date. |
time interval |
None. |
| Tags |
List of name/value pairs listing the tags associated with the resource. |
Collection of Pair of string [key] and string [value] |
None. |
| Md5HashBase64 |
Md5Hash of the resource as a Base64Encoded string. |
string |
None. |
| Md5HashHexString |
Md5Hash of the resource as a hex string. |
string |
None. |
Response Formats
application/json, text/json
{
"ResourceIdentifier": "7c04efc6-f66c-481f-a070-bbaa82c9b9cb",
"Application": "sample string 2",
"OriginalFilename": "sample string 3",
"SizeInBytes": 1,
"CreatedUtc": "2025-10-27T16:22:20.2212751-04:00",
"LastAccessedUtc": "2025-10-27T16:22:20.2212751-04:00",
"TimeToLiveAfterLastAccess": "00:00:00.1234567",
"Tags": [
{
"Key": "sample string 1",
"Value": "sample string 2"
},
{
"Key": "sample string 1",
"Value": "sample string 2"
}
],
"Md5HashBase64": "sample string 6",
"Md5HashHexString": "sample string 7"
}
application/xml, text/xml
<ResourceMetaData xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ResourceIdentifier>7c04efc6-f66c-481f-a070-bbaa82c9b9cb</ResourceIdentifier>
<Application>sample string 2</Application>
<OriginalFilename>sample string 3</OriginalFilename>
<SizeInBytes>1</SizeInBytes>
<CreatedUtc>2025-10-27T16:22:20.2212751-04:00</CreatedUtc>
<LastAccessedUtc>2025-10-27T16:22:20.2212751-04:00</LastAccessedUtc>
<TimeToLiveAfterLastAccess />
<Tags>
<KeyValuePairOfStringString />
<KeyValuePairOfStringString />
</Tags>
<Md5HashBase64>sample string 6</Md5HashBase64>
<Md5HashHexString>sample string 7</Md5HashHexString>
</ResourceMetaData>