> Markdown version of https://tuna.am/en/docs/api/monitor-pause/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

# Pause a monitor

post`/v1/monitors/{monitor_id}/pause`

## Request

### Authorization

* **Authorization**stringheaderrequired

  Key in the format `Bearer <API-key>`. Create a key on the [API keys](https://my.tuna.am/api_keys) page.

### Path Parameters

* **monitor_id** stringrequired

  Monitor ID

### Response

200application/json

* **alert_max_attempts**integer\<uint16>

  Maximum number of consecutive alerts

  **Example:&#x20;**`3`

  **alert_repeat**integer\<uint16>

  Alert repeat interval in minutes

  **Example:&#x20;**`60`

  **alias**string

  Monitor alias in the ping URL (`job` and `heartbeat` types)

  **Example:&#x20;**`nightly-backup`

  **avg_duration**number\<double>

  Average check duration in seconds

  **body**string

  Request body (`http` type)

  **body_assertions** object\[]

  Response body assertions

  Array \[
* **comparator**string

  Comparison operator

  **Possible values:** \[`eq`, `not_eq`, `contains`, `not_contains`, `empty`, `not_empty`, `gt`, `gte`, `lt`, `lte`]

  **Example:&#x20;**`contains`

  **target**string

  Expected response body content

  **Example:&#x20;**`OK`

  ]
* **certificate** object

  **issuer_common_name**string

  Certificate issuer

  **Example:&#x20;**`Let's Encrypt`

  **not_after**string\<date-time>

  Validity end date

  **not_before**string\<date-time>

  Validity start date

  **contact_groups** object\[]

  Contact groups for notifications

  Array \[
* **contacts**integer\<int64>

  Number of contacts in the group

  **Example:&#x20;**`4`

  **created_at**string\<date-time>

  Creation date

  **id**integer\<int64>

  Contact group ID

  **Example:&#x20;**`11`

  **name**string

  Group name

  **Example:&#x20;**`On-call engineers`

  ]
* **created_at**string\<date-time>

  Creation date

  **degraded_at**integer\<int64>

  Threshold in milliseconds after which a check is considered degraded

  **Example:&#x20;**`1000`

  **follow_redirects**boolean

  Follow redirects (`http` type)

  **grace_period**integer\<uint16>

  Minutes to wait after the scheduled start before the monitor is considered not started

  **Example:&#x20;**`5`

  **header_assertions** object\[]

  Response header assertions

  Array \[
* **comparator**string

  Comparison operator

  **Possible values:** \[`eq`, `not_eq`, `contains`, `not_contains`, `empty`, `not_empty`, `gt`, `gte`, `lt`, `lte`]

  **Example:&#x20;**`eq`

  **key**string

  Header name

  **Example:&#x20;**`Content-Type`

  **target**string

  Expected header value

  **Example:&#x20;**`application/json`

  ]
* **headers** object\[]

  Request headers (`http` type)

  Array \[
* **key**string

  Header name

  **Example:&#x20;**`Authorization`

  **value**string

  Header value

  **Example:&#x20;**`Bearer token`

  ]
* **host**string

  Host to check (`dns` and `icmp` types)

  **Example:&#x20;**`example.com`

  **id**string

  Monitor ID

  **Example:&#x20;**`2cUapHVcvLZQEDXJ8fRgQJ8q5qL`

  **interval**integer\<uint16>

  Run interval in minutes, an alternative to a schedule

  **Example:&#x20;**`5`

  **last_duration**number\<double>

  Duration of the last check in seconds

  **last_event_at**string\<date-time>

  Last event date

  **last_fail_at**string\<date-time>

  Last failed check date

  **last_finish_at**string\<date-time>

  Last finish date

  **last_ping_at**string\<date-time>

  Last ping date

  **last_start_at**string\<date-time>

  Last start date

  **method**string

  Request HTTP method (`http` type)

  **Possible values:** \[`GET`, `POST`, `HEAD`, `OPTIONS`, `PUT`, `PATCH`, `DELETE`, `TRACE`]

  **Example:&#x20;**`GET`

  **name**string

  Name

  **Example:&#x20;**`API healthcheck`

  **next_start_at**string\<date-time>

  Next run date

  **note**string

  Note

  **paused**boolean

  Alerts are paused; checks keep running

  **record_assertions** object\[]

  DNS record assertions (`dns` type)

  Array \[
* **comparator**string

  Comparison operator

  **Possible values:** \[`eq`, `not_eq`, `contains`, `not_contains`]

  **Example:&#x20;**`eq`

  **record**string

  DNS record type, for example `A`, `CNAME`, `MX`

  **Example:&#x20;**`A`

  **target**string

  Expected record value

  **Example:&#x20;**`93.184.216.34`

  ]
* **regions** object\[]

  Regions the check runs from

  Array \[
* **continent**string

  Continent

  **Example:&#x20;**`Europe`

  **flag**string

  Country flag emoji

  **Example:&#x20;**`🇩🇪`

  **id**string

  Region ID

  **Example:&#x20;**`550e8400-e29b-41d4-a716-446655440000`

  **location**string

  City or location where the checker is hosted

  **Example:&#x20;**`Frankfurt`

  **paused**boolean

  Region is disabled; no checks run from it

  **provider**string

  Provider that hosts the checker

  **Example:&#x20;**`hetzner`

  **region**string

  Region code, for example `eu-central`

  **Example:&#x20;**`eu-central`

  ]
* **retry**integer\<int64>

  Number of retries after a failed check

  **Example:&#x20;**`3`

  **running_time**integer\<uint16>

  Minutes a job can run before it is considered stuck

  **Example:&#x20;**`30`

  **schedule**string

  Schedule in cron format

  **Example:&#x20;**`*/5 * * * *`

  **status**string

  Monitor status

  **Possible values:** \[`new`, `up`, `running`, `down`]

  **Example:&#x20;**`up`

  **status_code_assertions** object\[]

  Response status code assertions

  Array \[
* **comparator**string

  Comparison operator

  **Possible values:** \[`eq`, `not_eq`, `gt`, `gte`, `lt`, `lte`]

  **Example:&#x20;**`eq`

  **target**integer\<int64>

  Expected response code

  **Example:&#x20;**`200`

  ]

  **timeout**integer\<int64>

  Check timeout in milliseconds

  **Example:&#x20;**`5000`

  **timezone**string

  Schedule time zone in IANA format, for example `Europe/Moscow`

  **Example:&#x20;**`Europe/Moscow`

  **type**string

  Monitor type

  **Possible values:** \[`job`, `heartbeat`, `http`, `tcp`, `dns`, `icmp`]

  **Example:&#x20;**`http`

  **updated_at**string\<date-time>

  Update date

  **updated_by_user_at**string\<date-time>

  Date of the last change by a user

  **uri**string

  `host:port` address to check (`tcp` type)

  **Example:&#x20;**`db.example.com:5432`

  **url**string

  URL to check (`http` type)

  **Example:&#x20;**`https://example.com/health`

  **whois** object

  **domain_expiration_date**string\<date-time>

  Domain registration expiration date

  **registrar_name**string

  Domain registrar

  **Example:&#x20;**`RU-CENTER`
