Create a section with a relation

curl https://mburger.cloud/api/blocks/<id>/sections
-X POST 
-H "Accept: application/json" 
-H "Content-Type: application/x-www-form-urlencoded"
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
-d "elements[<locale>][<element_type>]=<value>"
-d "relation[<index>]=<section_id>"

An example of elements and relation passed could be

"elements['it']['text']=ilTuoTesto"
"elements['en']['text']=yourText"

"relation[0]=14"
"relation[1]=16"

where 14 and 16 are examples of section ids.

Last updated