الانتقال إلى المحتوى الرئيسي
PATCH
Updates an uptime check. Send only the fields you want to change.

التفويضات

X-API-Key
string
header
مطلوب

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

معلمات المسار

uptimeId
string<uuid>
مطلوب

Uptime to update.

الجسم

Fields to change.

Request body for updating an uptime check. Every field is optional - send only what should change. An omitted field keeps the value the check already holds.

TypeId
integer<int32> | null

What the check does: 1 ICMP, 2 HTTP, 3 TCP. Changing this requires sending a Target valid for the new type, because the two are stored together.

Target
object

What an uptime check points at. Which fields are populated depends on the check type: ICMP uses Ip, TCP uses Ip and Port, HTTP uses Url. The others are null.

AdoptClientAssets
boolean | null

Move matching unassigned devices to the check's client. See the create request.

ClientId
integer<int64> | null

Identifier of the client the check belongs to. Sending this without LocationId is rejected, because a location belongs to a client and moving one without the other would file the check at the old client's site.

LocationId
integer<int64> | null

Identifier of the client location the check belongs to.

Description
string | null

What the check watches, free text. Max 250 characters.

Frequency
integer<int32> | null

How often the check runs, in minutes.

NumberOfRetriesAfterFailure
integer<int32> | null

How many times a failure is rechecked before the check counts as down.

RegionId
integer<int32> | null

Which monitoring region runs the check. Changing it cancels the check's schedule in the old region and schedules it in the new one.

Link to the ISP or provider status page for this endpoint.

TagIds
integer<int64>[] | null

Replaces the check's tags outright. An empty array clears them; omitting the field leaves them alone.

MaintenanceMode
object

A check's maintenance window - the period its failures are suppressed for.

Field names match the ones the update request takes.

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object

The identifier of the updated uptime check.

DataContext
object | null
مثال:

null

Notifications
object[]