Multi tenancy

This document provides information on how to set permission for a wallet
This feature will set which other wallet data each wallet can view

[API_URL] = PRODUCTION: https://api.efixii.io
        UAT: https://efixiidev-uat.azurewebsites.net

Get Permissions

Return the list of rules for a wallet to determine which values they will see when notarisating data.

Request – GET

[API_URL]/search/getPermissions?wallet=[wallet]

Result

Json

[{
    "wallet": "0xca83dfcd7cf8d50cb84d6ad1d0ed6e219afc66f8",
    "what": "Address",
    "value": "0x5c7759a5dd7f1996f72a865b935e3acfd39d3355"
}, {
    "wallet": "0xca83dfcd7cf8d50cb84d6ad1d0ed6e219afc66f8",
    "what": "Address",
    "value": "0Xc46c67dbbc728b68beb4ece91ff6886cfc2a0615"
}, {
    "wallet": "0xca83dfcd7cf8d50cb84d6ad1d0ed6e219afc66f8",
    "what": "Address",
    "value": "0x1234567890123456789012345678901234567890"
}]

Set Permissions

Add wallet to the permitted wallet list .

Request – POST

[API_URL]/search/setPermissions
object:
{
        "wallet" : "[walletfrom]",
        "what" : "Address",
        "value":"[walletto]",
        "enabled":1
}

Remove Permissions

Remove wallet to the permitted wallet list .

Request – POST

[API_URL]/search/setPermissions
object:
{
        "wallet" : "[walletfrom]",
        "what" : "Address",
        "value":"[walletto]",
        "enabled":0
}