cannot attach file to comment through API

Comments

2 comments

  • Casper Fabricius

    This probably means that the user you are authenticated as when attaching the file, is not a member of the space of the item of the comment.

    If you login to Podio as the same user you are authenticating with when doing the API request, are you able to go to the item and see the comment you are trying to attach a file to? If this is the case, you probably have some user auth and/or ids mixed up somewhere in your code.

    0
    Comment actions Permalink
  • Kalin Sivov

    yes, the user sees everything and is added to the space. in addition - the task, the comment, the file - all are created/uploaded with this same user through the api. it's an import script i'm writing so that it creates everything.

    i don't think it's an id mix up - i create the the comment and right after this i try to attach the file. (if i don't get a valid comment id my script dies.) the file id is also ok - i upload the file right before the comment, and again - if i get no podio file id, script dies.

    about auth - the script runs smoothly all the way until this particular api call with a single authorization. if i bypass this comment-file-attach api call, script continues to run just great.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk