Files
NodeBB/public/openapi/write/users/uid/account.yaml
Julian Lam a0b7a82350 feat(api): account deletion routes for the Write API (#8881)
* feat(api): account deletion routes for the Write API

* refactor: rewrite client-side calls to account deletion to use api

* style: apply DRY
2020-11-17 17:29:50 -05:00

25 lines
677 B
YAML

delete:
tags:
- users
summary: delete a single user account (preserve content)
description: This route deletes a single user's account, but preserves the content (posts, bookmarks, etc.)
parameters:
- in: path
name: uid
schema:
type: integer
required: true
description: uid of the user to delete
example: 7
responses:
'200':
description: user account deleted
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object