@ -120,6 +120,7 @@ specified value.</p>
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T14:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T15:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT31365bce-8da9-4729-8ff3-aaa71d56b712" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/31365bce-8da9-4729-8ff3-aaa71d56b712" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/31365bce-8da9-4729-8ff3-aaa71d56b712/pause" < / span > < span class = "p" > ,< / span >
@ -136,6 +137,7 @@ specified value.</p>
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d/pause" < / span > < span class = "p" > ,< / span >
@ -166,6 +168,7 @@ and <a href="#list-flips">Get a list of check's status changes</a> API calls.</p
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T14:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-24T15:02:03+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " a6c7b0a8a66bed0df66abfdab3c77736861703ee" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " timeout" < / span > < span class = "p" > :< / span > < span class = "mi" > 3600< / span >
< span class = "p" > },< / span >
@ -179,6 +182,7 @@ and <a href="#list-flips">Get a list of check's status changes</a> API calls.</p
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " 124f983e0e3dcaeba921cfcef46efd084576e783" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 15 5 * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span >
@ -221,6 +225,7 @@ using the read-only API key) as an identifier.</p>
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINT803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " update_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/803f680d-e89b-492b-82ef-2be7b774a92d/pause" < / span > < span class = "p" > ,< / span >
@ -248,6 +253,7 @@ check's unique UUID.</p>
< span class = "nt" > " last_ping" < / span > < span class = "p" > :< / span > < span class = "s2" > " 2020-03-23T10:19:32+00:00" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " unique_key" < / span > < span class = "p" > :< / span > < span class = "s2" > " 124f983e0e3dcaeba921cfcef46efd084576e783" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " schedule" < / span > < span class = "p" > :< / span > < span class = "s2" > " 15 5 * * *" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " tz" < / span > < span class = "p" > :< / span > < span class = "s2" > " UTC" < / span >
@ -282,7 +288,7 @@ Example:</p>
< dt > desc< / dt >
< dd >
< p > string, optional.< / p >
< p > Description for the check.< / p >
< p > Description of the check.< / p >
< / dd >
< dt > timeout< / dt >
< dd >
@ -300,7 +306,7 @@ Example:</p>
< / dd >
< dt > schedule< / dt >
< dd >
< p > string, optional, default value: "< em > * < / em > * * ".< / p >
< p > string, optional, default value: "< cod e> * * * * * < / cod e> ".< / p >
< p > A cron expression defining this check's schedule.< / p >
< p > If you specify both < code > timeout< / code > and < code > schedule< / code > parameters,
SITE_NAME will create a Cron check and ignore
@ -311,7 +317,7 @@ the <code>timeout</code> value.</p>
< dt > tz< / dt >
< dd >
< p > string, optional, default value: "UTC".< / p >
< p > Server's timezone. This setting only has effect in combination with the
< p > Server's timezone. This setting only has an effect in combination with the
< code > schedule< / code > parameter.< / p >
< p > Example:< / p >
< p > < pre > {"tz": "Europe/Riga"}< / pre > < / p >
@ -324,6 +330,17 @@ or not. If set to false, a paused check will leave the paused state when it rece
a ping. If set to true, a paused check will ignore pings and stay paused until
you manually resume it from the web dashboard.< / p >
< / dd >
< dt > methods< / dt >
< dd >
< p > string, optional, default value: "".< / p >
< p > Specifies the allowed HTTP methods for making ping requests.
Must be one of the two values: "" (an empty string) or "POST".< / p >
< p > Set this field to "" (an empty string) to allow HEAD, GET,
and POST requests.< / p >
< p > Set this field to "POST" to allow only POST requests.< / p >
< p > Example:< / p >
< p > < pre > {"methods": "POST"}< / pre > < / p >
< / dd >
< dt > channels< / dt >
< dd >
< p > string, optional< / p >
@ -340,11 +357,11 @@ API call to look up the available integration identifiers.</p>
< p > array of string values, optional, default value: [].< / p >
< p > Enables "upsert" functionality. Before creating a check, SITE_NAME looks for
existing checks, filtered by fields listed in < code > unique< / code > .< / p >
< p > If no matching check is found, SITE_NAME creates a new check and returns it
< p > If SITE_NAME does not find a matching check, it creates a new check and returns it
with the HTTP status code 201.< / p >
< p > If a matching check < em > is< / em > found, SITE_NAME will update it
and return it with HTTP status code 200.< / p >
< p > The accepted values for the < code > unique< / code > field are:
< p > If SITE_NAME finds a matching check, it updates the existing check and
and returns it with HTTP status code 200.< / p >
< p > The accepted values for the < code > unique< / code > field are
< code > name< / code > , < code > tags< / code > , < code > timeout< / code > and < code > grace< / code > .< / p >
< p > Example:< / p >
< p > < pre > {"name": "Backups", unique: ["name"]}< / pre > < / p >
@ -364,7 +381,7 @@ field values.</dd>
< dt > 401 Unauthorized< / dt >
< dd > The API key is either missing or invalid.< / dd >
< dt > 403 Forbidden< / dt >
< dd > The account's check limit has been reached . For free accounts,
< dd > The account has hit its check limit . For free accounts,
the limit is 20 checks per account.< / dd >
< / dl >
< h3 > Example Request< / h3 >
@ -390,6 +407,7 @@ the limit is 20 checks per account.</dd>
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Backups" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/f618072a-7bde-4eee-af63-71a77c5723bc/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINTf618072a-7bde-4eee-af63-71a77c5723bc" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " new" < / span > < span class = "p" > ,< / span >
@ -402,9 +420,8 @@ the limit is 20 checks per account.</dd>
< h2 class = "rule" id = "update-check" > Update an Existing Check< / h2 >
< p > < code > POST SITE_ROOT/api/v1/checks/< uuid> < / code > < / p >
< p > Updates an existing check. All request parameters are optional. The check is
updated only with the supplied request parameters. If any parameter is omitted,
its value is left unchanged.< / p >
< p > Updates an existing check. All request parameters are optional. If you omit any
parameter, SITE_NAME will leave its value unchanged.< / p >
< h3 > Request Parameters< / h3 >
< dl >
< dt > name< / dt >
@ -422,7 +439,7 @@ its value is left unchanged.</p>
< dt > desc< / dt >
< dd >
< p > string, optional.< / p >
< p > Description for the check.< / p >
< p > Description of the check.< / p >
< / dd >
< dt > timeout< / dt >
< dd >
@ -442,15 +459,16 @@ its value is left unchanged.</p>
< dd >
< p > string, optional.< / p >
< p > A cron expression defining this check's schedule.< / p >
< p > If you specify both "timeout" and "schedule" parameters, "timeout" will be
ignored and "schedule" will be used.< / p >
< p > If you specify both < code > timeout< / code > and < code > schedule< / code > parameters,
SITE_NAME will save the < code > schedule< / code > parameter and ignore
the < code > timeout< / code > .< / p >
< p > Example for a check running every half-hour:< / p >
< p > < pre > {"schedule": "0,30 * < em > * < / em > "}< / pre > < / p >
< / dd >
< dt > tz< / dt >
< dd >
< p > string, optional.< / p >
< p > Server's timezone. This setting only has effect in combination with the
< p > Server's timezone. This setting only has an effect in combination with the
"schedule" parameter.< / p >
< p > Example:< / p >
< p > < pre > {"tz": "Europe/Riga"}< / pre > < / p >
@ -458,11 +476,21 @@ ignored and "schedule" will be used.</p>
< dt > manual_resume< / dt >
< dd >
< p > boolean, optional, default value: false.< / p >
< p > Controls whether a paused ping resumes automatically when pinged (the default),
< p > Controls whether a paused ping automatically resumes when pinged (the default),
or not. If set to false, a paused check will leave the paused state when it receives
a ping. If set to true, a paused check will ignore pings and stay paused until it is
either manually resumed from the web dashboard or the < code > manual_resume< / code > flag is
changed.< / p >
a ping. If set to true, a paused check will ignore pings and stay paused until
you manually resume it from the web dashboard.< / p >
< / dd >
< dt > methods< / dt >
< dd >
< p > string, optional, default value: "".< / p >
< p > Specifies the allowed HTTP methods for making ping requests.
Must be one of the two values: "" (an empty string) or "POST".< / p >
< p > Set this field to "" (an empty string) to allow HEAD, GET,
and POST requests.< / p >
< p > Set this field to "POST" to allow only POST requests.< / p >
< p > Example:< / p >
< p > < pre > {"methods": "POST"}< / pre > < / p >
< / dd >
< dt > channels< / dt >
< dd >
@ -514,6 +542,7 @@ field values.</dd>
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Backups" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/f618072a-7bde-4eee-af63-71a77c5723bc/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINTf618072a-7bde-4eee-af63-71a77c5723bc" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " new" < / span > < span class = "p" > ,< / span >
@ -559,6 +588,7 @@ header is sometimes required by some network proxies and web servers.</p>
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Backups" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/f618072a-7bde-4eee-af63-71a77c5723bc/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINTf618072a-7bde-4eee-af63-71a77c5723bc" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " paused" < / span > < span class = "p" > ,< / span >
@ -601,6 +631,7 @@ check that was just deleted.</p>
< span class = "nt" > " name" < / span > < span class = "p" > :< / span > < span class = "s2" > " Backups" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " next_ping" < / span > < span class = "p" > :< / span > < span class = "kc" > null< / span > < span class = "p" > ,< / span >
< span class = "nt" > " manual_resume" < / span > < span class = "p" > :< / span > < span class = "kc" > false< / span > < span class = "p" > ,< / span >
< span class = "nt" > " methods" < / span > < span class = "p" > :< / span > < span class = "s2" > " " < / span > < span class = "p" > ,< / span >
< span class = "nt" > " pause_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " SITE_ROOT/api/v1/checks/f618072a-7bde-4eee-af63-71a77c5723bc/pause" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " ping_url" < / span > < span class = "p" > :< / span > < span class = "s2" > " PING_ENDPOINTf618072a-7bde-4eee-af63-71a77c5723bc" < / span > < span class = "p" > ,< / span >
< span class = "nt" > " status" < / span > < span class = "p" > :< / span > < span class = "s2" > " new" < / span > < span class = "p" > ,< / span >