Spaces:
Running
Running
Which token can write comments on posts and blog articles? (401 with post.write)
#57
by kutomanovhennadii - opened
Hi! I would like to reply to comments under my own posts from a script: I approve each reply myself, and the script only sends it.
The OpenAPI spec lists POST /api/posts/{username}/{postSlug}/comment and .../comment/{commentId}/reply, as well as the same addresses for /api/blog/.... With a fine-grained token these addresses answer 401 Invalid username or password., the same answer as with no token at all. This happens both on my own posts and on a post that does not exist.
What I checked:
- In
whoami-v2the token hasdiscussion.writeandpost.write, and "Interact with posts" is enabled. The Full Access preset gives the same result. - The same token is accepted on
POST /api/papers/{paperId}/comment: an empty body gets 400 there, not 401.
My questions:
- Is a token supposed to work for comments on posts and blog articles, or are these addresses available only from a browser session?
- If a token can work, which one is needed? What does
post.writeopen?
English translation assisted by AI.