How to disable Collaborative Editing through REST API call

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

目的

If you are unable to edit pages you might need to temporarily disable the Collaborative Editor while following the Troubleshooting Collaborative Editing guide. Sometimes the Collaborative Editor cannot be disabled via the UI as described in Administering Collaborative Editing. If you are affected by this, you can alternatively disable it through a REST call.

ソリューション

Disabling Collaborative Editing will delete any shared drafts that might exist.

  • Send a POST to <base_url>/confluence/rest/synchrony-interop/disable
  • Sample Python script that will disable Collaborate Editing:

    import requests
    
    
    def main():
        # Change the following to work with your Confluence instance including any context path
        base_url = 'http://localhost:8090/'
        username = 'admin'
        password = 'admin'
        # End change block
    
        session = requests.session()
    
        session.auth = (username, password)
    
        headers = {'X-Atlassian-Token': 'no-check'}
    
        resp = session.post('{0}/rest/synchrony-interop/disable'.format(base_url),
                headers=headers)
        print(resp)
        print(resp.content)
    
    main()




Last modified on Mar 3, 2022

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.