Contact Creation API
Posted: Thu Apr 15, 2021 1:16 pm
So if you GET a contact you can see the contact template it has applied under use:
But using that in the POST to create a Contact with use=xi_contact_generic doesn't appear to work as far as I can tell like it does for hosts and services. I just wanted to confirm this should work right?
Code: Select all
[
{
"contact_name": "nagiosadmin",
"alias": "Nagios Administrator",
"host_notifications_enabled": "1",
"service_notifications_enabled": "1",
"host_notification_period": "nagiosadmin_notification_times",
"service_notification_period": "nagiosadmin_notification_times",
"host_notification_options": "d,u,r,f,s",
"service_notification_options": "w,u,c,r,f,s",
"host_notification_commands": [
"xi_host_notification_handler"
],
"service_notification_commands": [
"xi_service_notification_handler"
],
"email": "root@localhost",
"use": [
"xi_contact_generic"
]
}
]