SNMP setting was transferred from items(in 4.0) to interfaces(in 5.0). Details section(which describes SNMP setting) was added to all hostinterface methods, not only to hostinterface.get.
Also would be nice to add Example of such interface creation to hostinterface.create method documentation. Example below:
It will save time to create it for first time.
To create SNMP interface for version 1 and 2c "community" field is REQUIRED! Without it API will get response : "Incorrect arguments passed to function." Which is not self explanatory.
In documentation confusion comes from word used. It is better to change to required
|community||string||SNMP community. Used - Required only by SNMPv1 and SNMPv2 interfaces.|