Podio REST API attach file incorrect rights to update file
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
add a comment |
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
add a comment |
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
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
podio
asked Nov 14 '18 at 1:16
DylanDylan
32
32
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
1
Authenticating as user solved the problem.
– Dylan
Dec 3 '18 at 0:15
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
1
Authenticating as user solved the problem.
– Dylan
Dec 3 '18 at 0:15
add a comment |
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
1
Authenticating as user solved the problem.
– Dylan
Dec 3 '18 at 0:15
add a comment |
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
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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