Thread:Project:Support desk/How to use API:Edit to edit the content of a section, but maintain the title of the section/reply (6)

Just put a title there in the wikitext that you post.

For example, if you have an old section like this:

== Original title == This section, with its title, is deleted.

Then you can post a replacement like this:

== Replacment title == This section, with the replacement title, is what is here now.

You could even "keep" the title if you just post it when you edit the section:

== Original title == This is new section text.

What have you tried so far?