POST a JSON Object Using Fetch API in JavaScript
https://www.delftstack.com/howto/javascript/javascript-fetch-post/
The Fetch API allows you to access and modify the HTTP requests and responses. The Fetch API provides the fetch() method that will enable you to fetch resources asynchronously across the network. The fetch() method takes two parameters, url and options. The url is the endpoint to which the request is made. The options is an object with many properties, but this is an optional parameter. You can learn more about the fetch() method on MDN.