Znode

PUT permissions/updaterolesandpermissions

This method will update the roles and permissions for the relevant account id

Request Information

» Parameters

Name Description Additional information
model PermissionsModel model

Define this parameter in the request body.

Request Body Formats

Sample:
	{
  "AccountId": 1,
  "UserName": "sample string 2",
  "UserId": "743f9ae8-2fbc-4500-8e97-58c84420d8c2",
  "roleModel": {
    "$id": "2",
    "Permissions": {
      "$id": "3",
      "$values": [
        {
          "$id": "4",
          "m_Item1": "sample string 1",
          "m_Item2": 2,
          "m_Item3": true
        },
        {
          "$id": "5",
          "m_Item1": "sample string 1",
          "m_Item2": 2,
          "m_Item3": true
        },
        {
          "$id": "6",
          "m_Item1": "sample string 1",
          "m_Item2": 2,
          "m_Item3": true
        }
      ]
    }
  },
  "storeModel": {
    "$id": "7",
    "Stores": {
      "$id": "8",
      "$values": [
        {
          "$id": "9",
          "m_Item1": "sample string 1",
          "m_Item2": 2,
          "m_Item3": true
        },
        {
          "$id": "10",
          "m_Item1": "sample string 1",
          "m_Item2": 2,
          "m_Item3": true
        },
        {
          "$id": "11",
          "m_Item1": "sample string 1",
          "m_Item2": 2,
          "m_Item3": true
        }
      ]
    }
  },
  "SelectedStoreIds": "sample string 4",
  "SelectedRoleIds": "sample string 5"
}