Individual Courses API

DELETE - /api/v1/courses/:another_id - Deleting

DELETE /api/v1/courses/:another_id

Parameters

Name Description
id id

Request

Headers

Accept: application/json
X-Api-Token: uYj_Jj-JJyAxVFaumZDVLxLemCPnYtfiCg
X-Api-Email: user-314@example.com

Route

DELETE /api/v1/courses/124

Body

{}

cURL

curl "http://localhost:3000/api/v1/courses/124" -d '{}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: uYj_Jj-JJyAxVFaumZDVLxLemCPnYtfiCg" \
	-H "X-Api-Email: user-314@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!"
}