/
12- create an child

12- create an child

1- create the child

2- list the child




create an child  in Python
create an child
    # add ancestor ( parent_id)
    if parent_id != None:
                dpayload['ancestors'] = [{'type':"page",'id':parent_id}]
json for postman


json 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"
  }
],


POST with curl on windows Powershell
Credential is optional ( depend on the Confluence website )

curl -Method POST -ContentType 'application/json'  -Body '{"type":"page","title":"child_page7",
"space":{"key":"TEST"},"body":{"storage":{"value":"<p>This is a new page from curl Linux<br/> a new page</p>","representation":
"storage"}},"ancestors":[{"type":"page","id":"108331009"}]}' -user username:password -v https://thefreetelecomuni.atlassian.net/wiki/rest/api/content/













Related content

3- Page Create or Update content to a page or Delete
3- Page Create or Update content to a page or Delete
More like this
list space: parsing json response from confluence
list space: parsing json response from confluence
More like this
UPDATE a page or MOVE a page to another parents with PUT
UPDATE a page or MOVE a page to another parents with PUT
More like this
confluence-rest-library 1.0.0
confluence-rest-library 1.0.0
More like this
list page per space: parsing json response
list page per space: parsing json response
More like this
POST with python request module
POST with python request module
More like this