Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Live template
templateTypetemplate
templateOption{"label":"FAQ Template Cloud Ready v2","value":"477609385","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId477609385
excerptPurpose How do we remove existing Scaffolding data from a Table Data macro using API? Answer First, run 1. Run the GET REST API to get the structure of the JSON . {confluence-url}/rest/scaffolding/1.0/api/form/{pageID} You should get the results below: . [ { "macro": "table-data", "name": "tabledata", "value": { "0": [ { "macro": "text-data", "name": "text1", "value": "<p>Text1 Test</p>" }, { "macro": "text-data", "name": "text2", "value": "<p>Text2 Test</p>" } ], "1": [ { "macro": "text-data", "name": "text1", "value": "<p>Text1 Test 2</p>" }, { "macro": "text-data", "name": "text2", "value": "<p>Text2 Test 2</p>" } ] } } ] Then, change 2. Change the value to empty : [ { "macro": "table-data", "name": "tabledata", "value": "" } ] 3. Run the PUT method using the JSON body in Step 3 2 with the same REST API as Step 1 : {confluence-url}/rest/scaffolding/1.0/api/form/{page-id}
fieldGroupKeys{"hrcmv5naj2":["net.customware.confluence.plugin.scaffolding__hrcmv5naj2__data_0_lr6901cgybbeq2mcyoo4"]}