URI | /v1/accounts/{username}/cancellation |
URI Parameters |
|
Methods | POST |
POST /v1/accounts/{username}/cancellation
Cancels an account with a given reason.
Scope | accounts_write |
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
POST /v1/accounts/barracuda/cancellation HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Content-Type: application/json
{
"reason_id": 1,
"reason_note": ""
}
Response:
HTTP/1.1 303 See Other
Location: https://api.intronis.com/v1/accounts/barracuda
Example XML
Request:
POST /v1/accounts/barracuda/cancellation HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<cancellation>
<reason_id>1</reason_id>
<reason_note/>
</cancellation>
Response:
HTTP/1.1 303 See Other
Location: https://api.intronis.com/v1/accounts/barracuda