Retrieve comments for a file owned by non active user

New post

Comments

2 comments

  • jcleblanc

    Hi ,

     

    I ran a few app tests to verify, but this is due to scope requirements on the "Get comments" endpoints. Basically that endpoint is only made available with the read & write scope, but not with just read. Most likely this is due to some metadata on access being written to the file during the call.

     

    Why this is impacting you is because a non-active user is set to not be able to edit the content, so since write permissions are needed by that call (and not the other endpoints you mentioned) the call will fail. 

     

    We're working on adding transparency to the docs to make it much easier to understand how scopes impact endpoints, but for the time being that's the main reason for the error that you're seeing.

     

    Hope that helps,

    Jon

    0
    Comment actions Permalink
  • marcus29200

    Ahh, yeah that makes sense. I ran into the same thing with the /content endpoint, as I discovered that also writes data back when it's called. 

     

    Thank you for the clarification! 

     

    Out of curiosity, what gets written back on that endpoint? I find it kind of weird that /comments writes data, but the other ones I mentioned do not.

    0
    Comment actions Permalink

Please sign in to leave a comment.