PUT /API/SSL/Update

Basic Intro

Update SSL tests using this endpoint.

Parameters

ID is required, without it a new test will be created!

Name Type Description Required
id Integer Unique ID of the SSL check you wish to update YES
checkrate Integer Checkrate in seconds. Accepted: [300, 600, 1800, 3600, 86400, 2073600] NO
contact_groups String Contactgroup IDs, separated by a comma. Can be an empy string NO
alert_at String When you wish to receive reminders. Must be exactly 3 numeric values seperated by commas NO
alert_expiry Boolean Set to true to enable expiration alerts. False to disable NO
alert_reminder Boolean Set to true to enable reminder alerts. False to disable. Also see alert_at NO
alert_broken Boolean Set to true to enable broken alerts. False to disable NO

Response Codes

  • HTTP 200 - Success - Message will contain ID of newly created SSL check
  • HTTP 400 - Request Failed - Please check output for more information
  • HTTP 401 - Authorization Required - Provide Correct Username and API key

Example Output

The output is returned as a json array

{
    "Success": true,        // True if success, false is failed
    "Message": "",          // Contains error message if failed
    "Input": {              // Parsed input that was used
        "checkrate": 86400,                     // Checkrate in seconds
        "contact_groups": "1000,2000",          // Contactgroups, ID by CSV
        "alert_reminder": false,                // If reminder was enabled
        "alert_expiry": false,                  // If expiration alerts were enabled 
        "alert_broken": false,                  // If broken alerts were enabled
        "alert_at": "59,60,61"                  // Sanitized alert periods
    }
}