DELETE (/users/xuid(xuid)/lists/PINS/)
Removes items from a list. The domain for these URIs iseplists.xboxlive.com.
- Remarks
- URI parameters
- Query string parameters
- Authorization
- Required Request Headers
- Request body
- HTTP status codes
- Response body
Remarks
Items to be removed are indicated by their index in the list and are identified in the query string parameter indexes. The list of indexes must be comma-delimited and only 100 indexes can be passed in a single call. However, if no indexes are passed (empty query string parameter) then the contents of the entire list will be deleted (an empty list will remain, and the version number will continue to increment). Once the items are removed, the list is “compacted” such that no holes are left in the ordering of indexes. Therefore, this call is not idempotent. This call requires an If-Match:versionNumber header to be included in the request, where versionNumber is the current version number of the file. If it is not included, or does not match the current list version number, then an HTTP 412 (precondition failed) status code will be returned and the body of the response will contain the latest metadata of the list that includes the current version number. This is done to guard against updates from different clients trampling on one another.URI parameters
Query string parameters
| Parameter| Type| Description| | --- | --- | --- | --- | --- | --- | | indexes| string| Optional. Specifies where to remove items. Supported values: 0, positive integers, and “end”. Default value: 0.| Example: indexes=1,8 removes items at indexes 1 and 8. Indexes must be unique. If no indexes are provided, the entire list will be cleared.Authorization
This call expects an XSTS SAML token in the Authorization header. A Xuid claim must exist within that SAML token to identify the caller. This value is used to determine if the caller has access rights to the list data in question. The list itself will be identified by the Xuid as well and will be included in the URI for the list. Using this, we may in the future support shared access to lists, but that is not a feature at this time. Currently, all lists that a user accesses will be their own and there is no shared access. Thus the Xuid in the URI must match the Xuid in the SAML claims token.Note:
Both XBL Auth 2.0 and 3.0 tokens are supported at present.
