DELETE api/v2/Users/{id}/UserCards/RemoveAllCards
Removes all Cards from an existing User. Returns a list of cards removed
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
User Id |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
RemoveAllCardsResultName | Description | Type | Additional information |
---|---|---|---|
Result |
Operation result |
Result |
None. |
CardsRemoved |
List of cards removed |
Collection of RemoveUserCardViewModel |
None. |
Response Formats
application/json, text/json
Sample:
{ "Result": { "ResultCode": 1, "Description": "sample string 2" }, "CardsRemoved": [ { "UserId": "d0322121-38f8-462b-9dd4-b94fba7c8728", "CardId": "c9ee852d-2809-4c01-8d8e-a7b0fe4eb37f", "ExternalCardNumber": "sample string 2", "InternalCardNumber": 1 }, { "UserId": "d0322121-38f8-462b-9dd4-b94fba7c8728", "CardId": "c9ee852d-2809-4c01-8d8e-a7b0fe4eb37f", "ExternalCardNumber": "sample string 2", "InternalCardNumber": 1 } ] }
application/xml, text/xml
Sample:
<RemoveAllCardsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <CardsRemoved> <RemoveUserCardViewModel> <CardId>c9ee852d-2809-4c01-8d8e-a7b0fe4eb37f</CardId> <ExternalCardNumber>sample string 2</ExternalCardNumber> <InternalCardNumber>1</InternalCardNumber> <UserId>d0322121-38f8-462b-9dd4-b94fba7c8728</UserId> </RemoveUserCardViewModel> <RemoveUserCardViewModel> <CardId>c9ee852d-2809-4c01-8d8e-a7b0fe4eb37f</CardId> <ExternalCardNumber>sample string 2</ExternalCardNumber> <InternalCardNumber>1</InternalCardNumber> <UserId>d0322121-38f8-462b-9dd4-b94fba7c8728</UserId> </RemoveUserCardViewModel> </CardsRemoved> <Result> <Description>sample string 2</Description> <HttpStatusCode>Continue</HttpStatusCode> <ResultCode>1</ResultCode> </Result> </RemoveAllCardsResult>