No way to flag a post via API?
-
Hi all,
Is there actually no way to create a flag via the API? It seems like such a strange omission. I can get the existing flags using the
/api/flags/
or even a particular flag with its id/api/flags/1
, but I can't find a way to create a flag via the API.Is it really missing? What would be an easy way to make it possible to create flags via the API?
Thanks in advance,
-
@andrei-lopatenco You are correct, there is no Flags API at the moment... there never was one for the Write API plugin, and when it got ported into core, we didn't make one either.
But it sounds like a good idea.
Flags API · Issue #9649 · NodeBB/NodeBB
e.g. POST /api/v3/flags GET/PUT /flags /flags/:flagId
GitHub (github.com)
Copyright © 2024 NodeBB | Contributors