Rest API POST call syntax

Can someone tell me how to make a post request using erpnext api through js script? I cannot find a proper syntax anywhere.

Check this: https://frappe.io/docs/user/en/guides/basics/frappe_ajax_call