School root route requests API

is forbidden

DELETE /api/v1/school

Parameters

Name Description
name School Name

Request

Headers

Accept: application/json
X-Api-Token: yNQgAnZem_wdsh--Hu-AuESssaUxnyoqBA
X-Api-Email: user-286@example.com

Route

DELETE /api/v1/school

Body

{}

cURL

curl "http://localhost:3000/api/v1/school" -d '{}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: yNQgAnZem_wdsh--Hu-AuESssaUxnyoqBA" \
	-H "X-Api-Email: user-286@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!"
}