Updating Data in Plugin with JS

Hello friends,

I’m trying to write a plugin in Discourse but I couldn’t update the data. There is no problem with adding and deleting data. It does this successfully.

I’ve been struggling for hours, but only this part is left in the plugin. If I do this too it will be over :slight_smile:

Commands like destroyRecord and createRecord are for adding/deleting, but I couldn’t find which code to use for the update. I want to update other data except ID.

There may be an update command, but I couldn’t figure out how it works either.

Is there anyone who can help me with this? I’m stuck on the updatePayment section.

I’m not especially got at the front end stuff, but you’re going to need to make API calls from the front end to the Discourse API endpoints.

1 Like

but post editing process etc. is done from the interface. that is, not necessarily post, other editing operations can be done from the interface. Shouldn’t that be too?