POST api/users/me/delete-account

Requests a confirmation code or deletes the authenticated account and all its users.

Request Information

URI Parameters

None.

Body Parameters

An empty object to request a code, or the previously returned ConfirmationCode to execute deletion.

DeleteAccountRequest
NameDescriptionTypeAdditional information
ConfirmationCode

Omit or set to null to request a code; otherwise return the code received from the first call.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ConfirmationCode": "sample string 1"
}

application/xml, text/xml

Sample:
<DeleteAccountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models">
  <ConfirmationCode>sample string 1</ConfirmationCode>
</DeleteAccountRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HTTP 200 with a code and its UTC expiry, or HTTP 204 after successful deletion.

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.