code: public void put_device_attribute_property(Database database, String deviceName, DbAttribute[] attr)
              throws DevFailed {
          if (!database.isAccess_checked()) checkAccess(database);
  
          DeviceData argIn = new DeviceData();
          try {
              //	value is an array
              argIn.insert(ApiUtil.toStringArray(deviceName, attr, 2));
              command_inout(database, "DbPutDeviceAttributeProperty2", argIn);
          } catch (DevFailed e) {
              if (e.errors[0].reason.equals("API_CommandNotFound")) {
                  //	Value is just one element
                  argIn.insert(ApiUtil.toStringArray(deviceName, attr, 1));
                  command_inout(database, "DbPutDeviceAttributeProperty", argIn);
              } else
                  throw e;
          }
      }
docs: ==========================================================================