Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...



create an childĀ  in Python


Code Block
titlecreate an child
    # add ancestor ( parent_id)
    if parent_id != None:
                dpayload['ancestors'] = [{'type':"page",'id':parent_id}]


json for postman


Code Block
titlejson code
"ancestors":{"type":"page","id":108331009}

--- don't forget the commas "," at the end of the previous line:
--- don't forget the square bracket " [ "   &    " ] " 

,
"ancestors": [
  {
    "type":"page",
    "id":"108331009"
  }
],







Image Added