POST api/v1/media/{id}/tag

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

TagOptionsDto
NameDescriptionTypeAdditional information
AddTags

The tag to apply to the media item.

Collection of string

None.

RemoveTags

Collection of string

None.

Request Formats

application/json, text/json, application/senml+json

Sample:
{
  "AddTags": [
    "sample string 1",
    "sample string 2"
  ],
  "RemoveTags": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<TagOptionsDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Media">
  <AddTags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AddTags>
  <RemoveTags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </RemoveTags>
</TagOptionsDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, application/senml+json

Sample:

Sample not available.