Set the name of a Stock item
Integer ID for the stock item.
String. The new name for the item
FM_api('Stock_setName', [ 'id'=>'7', 'val'=>'2kg 1.75mm PLA Filament' ] );
{"ok":1}
If you try to update a Stock name to the name it already has, you will get a warning:
Last updated 3 years ago
{"ok":1,"warning":"No change needed"}