Update Users Data

The API provides the function of update user information who under the integrator account.

Source Code Sample

JSONObject jsonData = new JSONObject();
JSONArray userinfos = new JSONArray();
JSONObject user1 = new JSONObject();
      
user1.put("email", email);
user1.put("ekycverified",ekycverified);
user1.put("name","test");
userinfos.add(user1);
jsonData.put("users", userinfos);
 
data = Hex.encodeHexString(Utils.aesEcbPkcs5PaddingEncrypt(jsonData.toString(),apiSecret));
mac = Utils.calculateMac(data,apiSecret);

Request Body Creation

{
"users":
   [
        {	
            "email": "apiadduser1@yopmail.com",
            "phonesn": "...",
            "name" : "...",
            "roletype": "...",	
            "ekycverified": "...",
        }
    ]
}

Example of Request

https://<domain>/signserver/v1/account/updateusers?accesstoken=2bb0417a-a409-4c80-8d9b-3b138e04f8&data=1dc5c5d3b8d22178acf393334400325c5ec5a6a4f21352ef5dbb5eadd96ae1d1e4872&mac=97081bf511393cad45b0bebde8543e3d189a0ff219fe2ad9c0f42667723301f5

Expected Response

{
	"updated": [
	  "apiadduser1@yopmail.com", 
	  "..."]
}

How can we help?