Oh my word, this did the trick it looks like. Thank you!snapier3 wrote: ↑Mon May 20, 2024 2:56 pm I do this a ton in Python...
Modify your list formatChange to this and see what you get"contacts": ["slack_support", "support"],
--SNCode: Select all
"contacts": ["slack_support, support"],
Search found 2 matches
- Mon May 20, 2024 9:27 pm
- Forum: Nagios XI
- Topic: [API] Possible to add multiple contacts when creating a service?
- Replies: 3
- Views: 661
Re: [API] Possible to add multiple contacts when creating a service?
- Mon May 20, 2024 1:07 pm
- Forum: Nagios XI
- Topic: [API] Possible to add multiple contacts when creating a service?
- Replies: 3
- Views: 661
[API] Possible to add multiple contacts when creating a service?
Hello, I couldn't find an answer for this, but it seems that when creating a service (or updating one via put) the contact is only set as the last value given in a list. The following code creates the service: body = { "host_name": "edge", "service_description": "P...