Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved How to update an application from the Cloudron API?

    Support
    api
    2
    5
    218
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • martinkbs
      martinkbs last edited by girish

      Hi guys,

      I am trying to launch an application update through the Cloudron API, and it returns the following error:

      {
          "status": "Bad Request",
          "message": "appStoreId or manifest is required"
      }
      

      Captura-de-pantalla-2022-06-16-114352.png

      How should the appStoreId be defined to generate the update?

      I have tried to launch individual backups of the application with the same API Token and it has worked without problems.

      girish 1 Reply Last reply Reply Quote 0
      • martinkbs
        martinkbs @girish last edited by

        That was the piece of information I was missing. Now it works perfect.

        How much time am I going to save updating WordPress Developer applications...

        Thank you @girish 👍 😊

        1 Reply Last reply Reply Quote 1
        • girish
          girish Staff @martinkbs last edited by girish

          @martinkbs said in How to update an application from the Cloudron API?:

          How should the appStoreId be defined to generate the update?

          For apps installed via the app store, you have to set appStoreId. For this, pass appStoreId of the form id@newversion. Internally, cloudron will download the manifest from appstore for the associated id and new version.

          For custom apps, you have to set the manifest. For the latter, just pass the new manifest in the manifest.

          martinkbs 1 Reply Last reply Reply Quote 0
          • martinkbs
            martinkbs @girish last edited by

            Thanks @girish, but there must be something I'm forgetting.

            I have tried to push a pending update of the FreeScout application (to version 1.9.0), and I have tried to pass the appStoreId as you say and I get the same error.

            e18e0a37-e02a-4091-8060-5d86907d0316-image.png

            Captura de pantalla 2022-06-20 105229.png

            Captura de pantalla 2022-06-20 105301.png

            Is there any other parameter to take into account?

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @martinkbs last edited by

              @martinkbs POST request arguments have to be send in the body in our API and not as query parameters.

              martinkbs 1 Reply Last reply Reply Quote 1
              • martinkbs
                martinkbs @girish last edited by

                That was the piece of information I was missing. Now it works perfect.

                How much time am I going to save updating WordPress Developer applications...

                Thank you @girish 👍 😊

                1 Reply Last reply Reply Quote 1
                • Topic has been marked as a question  girish girish 
                • Topic has been marked as solved  girish girish 
                • First post
                  Last post
                Powered by NodeBB