Bulk conversion of pages to new editor
Asked by ryder:

Hi all,

the subject give a hint to my question.

Is there way to buld convert all pages of one space to the new editor format without manual editing each page?

Perhaps using the bobswitft cli?

Thanks to all.

ciao

ryder


Answers:
author: Kinnera
body: Hello [@ryder](/t5/user/viewprofilepage/user-id/1243697)

Good Day!

We have a workaround to convert all the pages in space to a new editor through the **renderRequest** parameter along with **runFromPageList** parameter. Please refer to the below action command for the same:

**The command to bulk convert all pages in space to a new editor:**

```

--action runFromPageList --space KT --common "--action renderRequest --request "/rest/api/content/@contentId@/convert\?\hash=13" --type "JSON" --requestType PUT" --continue

```

**To convert a single page into a new editor please use the below action:**

```

--action renderRequest --request "/rest/api/content/506527918/convert?hash=13" --type "JSON" --requestType PUT

```

In the above action command, the **506527918** within the URL refers to the page id.

Regards  
Kinnera

comments: author: lesterw
body: Where is this command line executed?


author: lesterw
body: Could this API be used?  
<https://developer.atlassian.com/cloud/confluence/rest/api-group-content-body/#api-wiki-rest-api-contentbody-convert-to-post>


author: Mark Haller
body: Hi there!

I realise this is a year old ... but is it still the recommended approach?

Only asking as it's failing for me -

Run: --action renderRequest --request /rest/api/content/28999251/convert\\?\\hash=13 --type JSON --requestType PUT  
Remote error: Invalid request. Response code: 400. Use -v to see more details.


author: Kinnera
body: Hi [@ryder](/t5/user/viewprofilepage/user-id/1243697)

We are from the BobSwift support team and would like to inform you that we have created a support request [SUPPORT-4673](https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-4673) on your behalf in our portal.

Request you to signup to the portal and let us know the username so that we can make you the reporter and will be able to access the ticket.

Please find the below link to signup to the portal: <https://bobswift.atlassian.net/servicedesk/customer/portals/1>

Best Regards

Kinnera Siriki

comments: author: ryder
body: I'm not sure, if I got your right.

I use the same account from Atassian Community for your portal.

Best wishes

ryder


author: Kinnera
body: Hi [@ryder](/t5/user/viewprofilepage/user-id/1243697)

Please sign up for our portal using the link below

<https://bobswift.atlassian.net/servicedesk/customer/user/signup?destination=portals%2F1%3Fignored%3Dportals%2F1>

Provide the email address where you will be receiving the confirmation link to access our portal.

We have opened an improvement request <https://bobswift.atlassian.net/browse/ACLI-1572> for converting pages to the new editor using Confluence CLI with our development team to track the progress. Our development team will perform further feasibility analysis towards a fix.

If you are facing any issue to access the request, please try to access it through incognito mode.

Also please add yourself as a watcher to the request to receive future updates on this improvement request

Best Regards

Kinnera Siriki


Tags: bob-swift

cloud

confluence-cloud