DELETE - /api/v1/pages/:id - Deleting
DELETE /api/v1/pages/:id
Parameters
| Name |
Description |
|
id
|
id
|
|
friendly_url
|
text, url for page
|
|
show_footer
|
show page footer, boolean
|
|
show_header
|
show header, boolean
|
|
is_published
|
show to public?
|
|
title
|
page title
|
|
content
|
page content(HTML)
|
|
template
|
template
|
|
course_id
|
course_id
|
Request
Headers
Route
DELETE /api/v1/pages/1148
Body
{"friendly_url":"page_slug","show_footer":false,"show_header":true,"title":"a page title","content":"\u003cdiv\u003epagecontent\u003c/div\u003e"}
cURL
curl "http://localhost:3000/api/v1/pages/1148" -d '{"friendly_url":"page_slug","show_footer":false,"show_header":true,"title":"a page title","content":"\u003cdiv\u003epagecontent\u003c/div\u003e"}' -X DELETE \
-H "Accept: application/json" \
-H "X-Api-Token: 4PrDuNSuU8QcVpsvm1xRrHo_QLTyJTqT2w" \
-H "X-Api-Email: user-91@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Status
204 No Content