API/Content Access Protocol/removeItem

From ickStream Wiki
Jump to: navigation, search

The purpose of the removeItem method is to remove an item (artist, album, track, ...) from a content service context which has previously been added with the addItem method.

Request:

{
	"jsonrpc": 2.0,
	"id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >,
	"method": "removeItem",
	"params": {
		"contextId": < Context which the item should be added to>
		"itemId": < Item identifier for the item to remove, this corresponds to the *id* attribute returned from findItems method>
	}
}

Specific information

Response:

{
	"jsonrpc": 2.0,
	"id": < A unique number used to correlate requests with responses, see JSON-RPC specification for more information >,
	"result": < true or false >
}

Specific information

  • result will be set to true if the item is successfully removed or if the item didn't exist in the requested content service context and didn't have to be removed.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox