New API question
Posted: Wed Oct 07, 2015 8:07 am
Right now, for adding new hosts or services, is there any way to say "dont require fields" so I can supply a template so I don't get
I really want to use the API for something I am doing, but I have to be able to use templates and not require those fields as they are all supplied by templates.
EDIT: I guess I could write the host cfg to the import folder, use the API to run the import, then write the services file and do the import again as a work around, but using the curl commands would be awesome!
Code: Select all
{
"error": "Missing required variables",
"missing": [
"max_check_attempts",
"check_period",
"notification_interval",
"notification_period",
"contacts OR contact_groups"
]
}
EDIT: I guess I could write the host cfg to the import folder, use the API to run the import, then write the services file and do the import again as a work around, but using the curl commands would be awesome!