Get notification profile information
Request example:
curl -X GET 'https://api.nodeping.com/api/1/notificationprofiles'
Response example:
{
  "201205050153W2Q4C-P-3QJWG": {
    "type": "notificationprofile",
    "customer_id": "201205050153W2Q4C",
    "name": "Example Profile",
    "notifications": [
        {"Y59XV":
            {"schedule":"Days",
             "delay":2}
        },
        {"201205050153W2Q4C-G-KPMVA":
            {"schedule":"All",
             "delay":0}
        }
    ]
  }
}
                        Create (POST) or update (PUT) a notification profile
[
  {"contactkey1":
    {"delay":0,
     "schedule":"schedule1"
    }
  },
  {"contactkey2":
    {"delay":5,
     "schedule":"schedule2"
    }
  }
]
                            You must send the entire notification array on update.curl -X POST -d'json={"notifications":[{"A4597":{"schedule":"All","delay":0}},{"Y59XV":{"schedule":"Days","delay":2}}],"name":"An Example Profile"}' 'https://api.nodeping.com/api/1/notificationprofiles'
                        
                        Response example:
{
    "_id": "201205050153W2Q4C-P-1ZIYU",
    "type": "notification profile",
    "customer_id": "201205050153W2Q4C",
    "name": "An Example Profile",
    "notifications": [
        {"A4597":
            {"schedule":"All",
             "delay":0}
        },
        {"Y59XV":
            {"schedule":"Days",
             "delay":2}
        }
    ]
}
                        Delete a notification profile
Request example:
curl -X DELETE 'https://api.nodeping.com/api/1/notificationprofiles/201205050153W2Q4C-P-1ZIYU'
Response example:
{"ok":true,"id":"201205050153W2Q4C-P-1ZIYU"}