Podio REST API attach file incorrect rights to update file










0















My goal is to copy an existing file from one item 'A' in app 'B', to item 'X' in app 'Y'.
First PHP API function PodioFile::copy(file_id) is used to copy the existing file attached to item 'A' and to get the file_id of the copy. Then, after authenticating with app 'Y',



PodioFile::attach(obtained_file_id_from_copy, array("ref_type" => "item", "ref_id" => item_x_id)


is used to attach the copied file to the item 'X' in app 'Y'.



The problem: When trying to attach the file a PodioForbiddenError is given. The response is as follows (error_description is important):



"error_parameters":,"error_detail":null,"error_propagate":false,"request":"url":"http://api.podio.com/file/749459918/attach","query_string":"","method":"POST",

"error_description":"The app with id 21217623 does not have the right update on file with id 749459918","error":"forbidden"


I haven't found any helpful information regarding this matter, hopefully someone is able to help me!










share|improve this question


























    0















    My goal is to copy an existing file from one item 'A' in app 'B', to item 'X' in app 'Y'.
    First PHP API function PodioFile::copy(file_id) is used to copy the existing file attached to item 'A' and to get the file_id of the copy. Then, after authenticating with app 'Y',



    PodioFile::attach(obtained_file_id_from_copy, array("ref_type" => "item", "ref_id" => item_x_id)


    is used to attach the copied file to the item 'X' in app 'Y'.



    The problem: When trying to attach the file a PodioForbiddenError is given. The response is as follows (error_description is important):



    "error_parameters":,"error_detail":null,"error_propagate":false,"request":"url":"http://api.podio.com/file/749459918/attach","query_string":"","method":"POST",

    "error_description":"The app with id 21217623 does not have the right update on file with id 749459918","error":"forbidden"


    I haven't found any helpful information regarding this matter, hopefully someone is able to help me!










    share|improve this question
























      0












      0








      0








      My goal is to copy an existing file from one item 'A' in app 'B', to item 'X' in app 'Y'.
      First PHP API function PodioFile::copy(file_id) is used to copy the existing file attached to item 'A' and to get the file_id of the copy. Then, after authenticating with app 'Y',



      PodioFile::attach(obtained_file_id_from_copy, array("ref_type" => "item", "ref_id" => item_x_id)


      is used to attach the copied file to the item 'X' in app 'Y'.



      The problem: When trying to attach the file a PodioForbiddenError is given. The response is as follows (error_description is important):



      "error_parameters":,"error_detail":null,"error_propagate":false,"request":"url":"http://api.podio.com/file/749459918/attach","query_string":"","method":"POST",

      "error_description":"The app with id 21217623 does not have the right update on file with id 749459918","error":"forbidden"


      I haven't found any helpful information regarding this matter, hopefully someone is able to help me!










      share|improve this question














      My goal is to copy an existing file from one item 'A' in app 'B', to item 'X' in app 'Y'.
      First PHP API function PodioFile::copy(file_id) is used to copy the existing file attached to item 'A' and to get the file_id of the copy. Then, after authenticating with app 'Y',



      PodioFile::attach(obtained_file_id_from_copy, array("ref_type" => "item", "ref_id" => item_x_id)


      is used to attach the copied file to the item 'X' in app 'Y'.



      The problem: When trying to attach the file a PodioForbiddenError is given. The response is as follows (error_description is important):



      "error_parameters":,"error_detail":null,"error_propagate":false,"request":"url":"http://api.podio.com/file/749459918/attach","query_string":"","method":"POST",

      "error_description":"The app with id 21217623 does not have the right update on file with id 749459918","error":"forbidden"


      I haven't found any helpful information regarding this matter, hopefully someone is able to help me!







      podio






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 1:16









      DylanDylan

      32




      32






















          1 Answer
          1






          active

          oldest

          votes


















          1














          You can't access other app's data/files using another app's authentication.
          You need to authenticate as app B to fetch file/data and change the authentication to app Y to attach/put file or data.
          Otherwise, try using authenticating as a user who has access to both the Apps so you don't have to change the authentication each time.



          Ref: Podio authentication






          share|improve this answer


















          • 1





            Authenticating as user solved the problem.

            – Dylan
            Dec 3 '18 at 0:15










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291808%2fpodio-rest-api-attach-file-incorrect-rights-to-update-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          You can't access other app's data/files using another app's authentication.
          You need to authenticate as app B to fetch file/data and change the authentication to app Y to attach/put file or data.
          Otherwise, try using authenticating as a user who has access to both the Apps so you don't have to change the authentication each time.



          Ref: Podio authentication






          share|improve this answer


















          • 1





            Authenticating as user solved the problem.

            – Dylan
            Dec 3 '18 at 0:15















          1














          You can't access other app's data/files using another app's authentication.
          You need to authenticate as app B to fetch file/data and change the authentication to app Y to attach/put file or data.
          Otherwise, try using authenticating as a user who has access to both the Apps so you don't have to change the authentication each time.



          Ref: Podio authentication






          share|improve this answer


















          • 1





            Authenticating as user solved the problem.

            – Dylan
            Dec 3 '18 at 0:15













          1












          1








          1







          You can't access other app's data/files using another app's authentication.
          You need to authenticate as app B to fetch file/data and change the authentication to app Y to attach/put file or data.
          Otherwise, try using authenticating as a user who has access to both the Apps so you don't have to change the authentication each time.



          Ref: Podio authentication






          share|improve this answer













          You can't access other app's data/files using another app's authentication.
          You need to authenticate as app B to fetch file/data and change the authentication to app Y to attach/put file or data.
          Otherwise, try using authenticating as a user who has access to both the Apps so you don't have to change the authentication each time.



          Ref: Podio authentication







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 14 '18 at 5:49









          Mûhámmàd Yäsår KMûhámmàd Yäsår K

          1,069619




          1,069619







          • 1





            Authenticating as user solved the problem.

            – Dylan
            Dec 3 '18 at 0:15












          • 1





            Authenticating as user solved the problem.

            – Dylan
            Dec 3 '18 at 0:15







          1




          1





          Authenticating as user solved the problem.

          – Dylan
          Dec 3 '18 at 0:15





          Authenticating as user solved the problem.

          – Dylan
          Dec 3 '18 at 0:15

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53291808%2fpodio-rest-api-attach-file-incorrect-rights-to-update-file%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto