PUT - /api/v1/pages/:page_id/blocks/:id - Updating
PUT /api/v1/pages/:page_id/blocks/:id
Parameters
| Name |
Description |
|
page_id
|
page id
|
|
body
|
body contents
|
|
id
|
id
|
|
position
|
position
|
Request
Headers
Route
PUT /api/v1/pages/2417/blocks/6464
Body
{"position":1}
cURL
curl "http://localhost:3000/api/v1/pages/2417/blocks/6464" -d '{"position":1}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: Wgwsja9R-qkUJ2D9X3iusDjLXath7uNW_w" \
-H "X-Api-Email: user-44@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
202 Accepted
Body
{
"created_at": "2019-10-31T22:07:43Z",
"are_dependencies_met": true,
"partial": "description_with_share_icons",
"position": 1,
"data": {
"description": null
},
"page_id": 2417,
"course_id": 296,
"is_hidden": false,
"id": 6464,
"custom_relations_data": {
},
"css_properties": {
},
"toggles": {
},
"meta": {
"class": "block",
"url": null,
"name": "6464",
"description": "",
"image_url": null
}
}