deleteItem
This API has been deprecated. See Add favorites for details on how to implement favorites.
If your integration uses deleteItem
, it will continue to work.
Sonos uses deleteItem
to remove a previously stored favorite. It accepts the ID of the favorite and returns no result. Sonos makes this request on your secure (HTTPS) endpoint.
Request parameters
Name | Type | Description |
---|---|---|
id | string(255) | The ID of the item to be deleted. |
Response
None required. Optionally, you can include a deleteItemResult
in a deleteItemResponse
.
Sample request
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<deleteItem xmlns="http://www.sonos.com/Services/1.1">
<favorite>track0004</favorite>
</deleteItem>
</soap:Body>
</soap:Envelope>
Sample response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<deleteItemResponse xmlns="http://www.sonos.com/Services/1.1">
<deleteItemResult>
</deleteItemResult>
</deleteItemResponse>
</soap:Body>
</soap:Envelope>
Updated about 1 year ago