Type: Problem report
Affects Version/s: 5.0.4
Fix Version/s: None
Component/s: API (A)
It appears that the host group is not assigned correctly by API call.
By performing a few tests it looks like the app is taking only the first digit from group ID.
For example, if the group "Custom name" with ID:27 are instructed, then it will try to add a group with ID:2
If "Another group" with ID:17, then it will assign ID:1