PUT - /api/v1/page_templates/:name
PUT /api/v1/page_templates/:name
Parameters
| Name |
Description |
|
name
|
boolean
|
|
body
|
link text
|
|
is_published
|
link target
|
Request
Headers
Route
PUT /api/v1/page_templates/partials/footer
Body
{"body":"\u003cfooter\u003ea footer\u003c/footer\u003e","is_published":true}
cURL
curl "http://localhost:3000/api/v1/page_templates/partials/footer" -d '{"body":"\u003cfooter\u003ea footer\u003c/footer\u003e","is_published":true}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: 716ksRBwoFZycLAJ5K35MPhXJDc13zbysQ" \
-H "X-Api-Email: user-704@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Status
204 No Content