Individual users API

without erasure permission

DELETE /api/v1/users/:id

Parameters

Name Description
id id
id id

Request

Headers

Accept: application/json
X-Api-Token: Bd_HbVE6HgdimRUmVxFs4s85LjcpyVsdEA
X-Api-Email: user-297@example.com

Route

DELETE /api/v1/users/1403

Body

{}

cURL

curl "http://localhost:3000/api/v1/users/1403" -d '{}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: Bd_HbVE6HgdimRUmVxFs4s85LjcpyVsdEA" \
	-H "X-Api-Email: user-297@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 84

Status

401 Unauthorized

Body

{
  "success": false,
  "error": "Unauthorized",
  "status": 401,
  "message": "You can't do that!"
}