POST api/MediaItems/AppendToTray

Add items to tray or remove them from tray.

Request Information

URI Parameters

None.

Body Parameters

TrayData
NameDescriptionTypeAdditional information
Id

Item's ID

integer

None.

Append

True if adding an item to the tray, False if deleting an item from the tray.

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "append": true
}

application/xml, text/xml

Sample:
<TrayData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DAMClient.Models">
  <Append>true</Append>
  <Id>1</Id>
</TrayData>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'TrayData'.

Response Information

Resource Description

Returns true if added/deleted successfully, false if failed (check for Error property)

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>
bool hasModels = Model.ParameterModels.Count > 0; if (hasModels) {

Parameter Information

data

Items in tray.

Property Description
Id (Int64)
            Item's ID
            
Append (Boolean)
             True if adding an item to the tray, False if deleting an item from the tray.
            
}