> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cron-schema's testen

Valideer een cron-schema-expressie met de [Public API (V2)](/api/v2/overview)
voordat u een cron-check-in configureert. Het eindpunt authenticeert met uw
persoonlijke API-token.

## Een cron-expressie testen

<CodeGroup>
  ```shell Endpoint theme={null}
  POST /api/v2/check_ins/test_cron
  ```
</CodeGroup>

### Request body

| Veld                | Type   | Vereist | Beschrijving                                                       |
| ------------------- | ------ | ------- | ------------------------------------------------------------------ |
| `cron`              | string | Ja      | Cron-expressie om te testen, zoals `0 * * * *`.                    |
| `wait_time_minutes` | number | Ja      | Wachttijd in minuten voor het check-in-venster.                    |
| `timezone`          | string | Nee     | Tijdzone voor evaluatie, zoals `Europe/Amsterdam`. Standaard UTC.  |
| `timestamp`         | number | Nee     | Unix-tijdstempel om tegen te evalueren. Standaard de huidige tijd. |

<CodeGroup>
  ```json body.json theme={null}
  {
    "cron": "0 2 * * *",
    "wait_time_minutes": 5,
    "timezone": "UTC"
  }
  ```
</CodeGroup>

### Response

Retourneert `now` (de tijdstempel die voor evaluatie is gebruikt), `next_start` (de volgende
geplande start) en `next_end` (het volgende geplande einde, dat is de start plus
de wachttijd). Als de expressie ongeldig is, bevat `error` de reden en zijn de
schemavelden afwezig.
