Not sure if this was documented anywhere (couldn't find it in search) but thought I'd bring it up just in case. I've been trying to use the api to post topics using a _uid
and master token in the api/v3
route and I kept getting forbidden errors. decided to try api/v2
and it works just fine now. I'm on the latest version of nodebb
S
shamkim
@shamkim
Posts
-
Using Master Token with _uid in api/v2 vs api/v3 -
Generating Bearer Token with Write API@dogs ah, i must have skimmed over that last part of the note. makes sense, thanks for pointing that out!
-
Generating Bearer Token with Write APII've been happily using the Write API (great work!!) and was able to generate bearer token through this endpoint:
/api/v3/users/{uid}/tokens
as an admin account. However when I try to generate one as a regular user, I get a forbidden, you do not have enough privileges for this action error. Is this correct? If it is, is my only option to use a master token with a_uid
parameter?Thank you!