const apiAction = new APIAction( url, //Replace this with the required url HTTPSRequestMethods.POST //replace this with the type of method);apiAction.setPayload(payload); //set the payloaf forn the requestapiAction.setHeaders(headers); //set the header for the requestapiAction.setDataKey("cometchatData"); //replace this with the key , if you want to replace the key oin which all the data for form will be sent