Categories API

DELETE - /api/v1/categories/:id - Deleting

DELETE /api/v1/categories/:id

Parameters

Name Description
id id
name Name
description a description

Request

Headers

Accept: application/json
X-Api-Token: PaoxD429qsT9xnCA6Mx177qoPf8xgyx8dg
X-Api-Email: user-608@example.com

Route

DELETE /api/v1/categories/7

Body

{"name":"Name","description":"test headline"}

cURL

curl "http://localhost:3000/api/v1/categories/7" -d '{"name":"Name","description":"test headline"}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: PaoxD429qsT9xnCA6Mx177qoPf8xgyx8dg" \
	-H "X-Api-Email: user-608@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Status

204 No Content