Update Section
How to update a section.
All the rules discussed on the Create Section part must be used also with this API.
You don't need to update all elements of a section in this call.
If you wish, you can only update some of them, all parameters are optional.
Note that media file elements will be added to preexisting media. If you wish to replace a media element you should first delete it, then do a section update.
Request
Response
POST https://mburger.cloud/api/sections/<id>/update
1
curl https://mburger.cloud/api/sections/<id>/update
2
-X POST
3
-H "Accept: application/json"
4
-H "Content-Type: application/x-www-form-urlencoded"
5
-H "X-MBurger-Token: <token>"
6
-H "X-MBurger-Version: 3"
7
-d '<data>'
Copied!

URL Parameters

Name
Type
Required
Description
id
int, string
Yes
Section id or the value of the slug element.
If you are using the slug (and the project has Multi-language enabled) make sure to include it in the request the correct locale.

Parameters

The parameters to update a section will depend on which elements the section is made of and how many locales are present.
Name
Type
Required
Description
order
int
No
To specify an order
When successful, a HTTP 200 and JSON like this is returned:
1
{
2
"status_code": 0
3
}
Copied!
Copy link