Post possible
If entry is existing, the system make an update
Mandatory fields are GroupId and GroupeType
Lines: If defined, the system replace all liens
Note: if you want to update a line, then use WareHouseRuleLiens
POST WareHouseRule
{"RuleId":"test","RuleBy":"G","Description":"TestMe","Lines":[
{"Description":"MyTest3","LineNumber":1,"ToWhsCode":"BW","ToBinCode":"001001","DocumentType":"WONEW"},
{"Description":"MyTest2","LineNumber":2,"ToWhsCode":"BW2","ToBinCode":"001001","DocumentType":"WONEW"}
]}