[ZBX-13678] host.create API method: cannot specify two-digit target host group Created: 2018 Mar 29  Updated: 2018 Jul 17  Resolved: 2018 Jul 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: API (A)
Affects Version/s: 3.4.6
Fix Version/s: None

Type: Incident report Priority: Minor
Reporter: Paul Wasilewski Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: api
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

zabbix_server (Zabbix) 3.4.3
Revision 73588 17 October 2017, compilation time: Oct 17 2017 16:57:08



 Description   

Steps to reproduce:
1) execute a host.create API call specifying any hostgroup to which the logged in user has permissions, but has a groupid > 9.

Result:

code message data
---- ------- ----
-32500 Application error. No permissions to referred object or it does not exist!

Expected:
hostids
-------

{xxxxx}

 Comments   
Comment by richlv [ 2018 Mar 30 ]

most likely, the group id is not doublequoted properly (although other reasons might apply). there are a bunch of issues about this already. most likely, boils down to api validation again.

Comment by Dmitrijs Lamberts [ 2018 Apr 04 ]

Hello Paul,

Please share full API request for troubleshooting.

Comment by Paul Wasilewski [ 2018 Jul 17 ]

This was user error.  I have since figured out how to properly structure JSON data for API requests.  Sorry for this.

Generated at Thu Jun 05 22:32:45 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.