http://www.zabbix.com/documentation/...pi/host/update
^ States that with the host.update in API, you can "Update host macros. Missing macros will be added, existing updated, others deleted."
So there are 3 macros I have. And When I try to update one of them it says that that macro already exists. Also how would I go about deleting a macro? The documentation did not go into depth with this and I am curious.
So far I have a work around the solution. For the time being I send a JSON object that just adds an empty macro, which deletes every other macro(why?). Then i send a second JSON object with all the macros I want(that's how I'm "updating" macros)
Is there a cleaner method to do so?
^ States that with the host.update in API, you can "Update host macros. Missing macros will be added, existing updated, others deleted."
So there are 3 macros I have. And When I try to update one of them it says that that macro already exists. Also how would I go about deleting a macro? The documentation did not go into depth with this and I am curious.
So far I have a work around the solution. For the time being I send a JSON object that just adds an empty macro, which deletes every other macro(why?). Then i send a second JSON object with all the macros I want(that's how I'm "updating" macros)
Is there a cleaner method to do so?
Comment