What is the best way to write to the notes field of a flag? I am writing a plugin that when a post/user is flagged it will send the information to a ticketing system and return a ticket id. I want to write that ID to the flag and close the flag.
custom plugin with custom POST url
I need to create a plugin that creates a url like
another app will POST to that URL with some encripted information with user information, and then need nodebb to update user information to that information in the POST ( I already know how to decript the data, and how to do all user update info calls, I just dont know how to create the endpoint for POST this info)
I know I can create GET urls like this
router.get('/update-user-api', middleware.buildHeader, render); router.get('/api/update-user-api', render);
but can find documentation on how to create url for POST. Any help? maybe something that is laready done I can use as example?