Custom Links API

DELETE - /api/v1/custom_links/reset_to_defaults - Deleting

DELETE /api/v1/custom_links/reset_to_defaults

Parameters

Name Description
id id
open_in_new_tab boolean
visible_to all, logged_in, logged_out
text link text
url link target
location loc
position position

Request

Headers

Accept: application/json
X-Api-Token: mmwrdSiufS6N2ypLWj7L33jjykh-rhz82g
X-Api-Email: user-159@example.com

Route

DELETE /api/v1/custom_links/reset_to_defaults

Body

{"id":7,"open_in_new_tab":false,"visible_to":"all","text":"Header Link","url":"www.google.com","location":"header","position":1}

cURL

curl "http://localhost:3000/api/v1/custom_links/reset_to_defaults" -d '{"id":7,"open_in_new_tab":false,"visible_to":"all","text":"Header Link","url":"www.google.com","location":"header","position":1}' -X DELETE \
	-H "Accept: application/json" \
	-H "X-Api-Token: mmwrdSiufS6N2ypLWj7L33jjykh-rhz82g" \
	-H "X-Api-Email: user-159@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Status

204 No Content