Changing data in a server

Hello everyone. I am new in ionic and I want to do a mobil application able to read the state of the some toggle and to change these states. The states are storage in a database online like the webpage where are the toggles. Right now I can read these toggle states in my apk but I need to change and update this state inside the database. I appreciate any help. Thank you in advance

Send a POST or PUT request via HTTP to your server, and have the server respond to it and act accordingly.