Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions api-reference-old/snippets/create.mdx

This file was deleted.

23 changes: 0 additions & 23 deletions api-reference-old/snippets/delete.mdx

This file was deleted.

19 changes: 0 additions & 19 deletions api-reference-old/snippets/get.mdx

This file was deleted.

19 changes: 0 additions & 19 deletions api-reference-old/snippets/list.mdx

This file was deleted.

23 changes: 0 additions & 23 deletions api-reference-old/snippets/update.mdx

This file was deleted.

4 changes: 2 additions & 2 deletions api-reference/openapi.json

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions api-reference/snippets/create-a-snippet.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions api-reference/snippets/delete-a-snippet.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions api-reference/snippets/list-all-snippets.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions api-reference/snippets/retrieve-a-snippet.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions api-reference/snippets/update-a-snippet.mdx

This file was deleted.

1 change: 0 additions & 1 deletion cli/checkly-import.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ npx checkly import plan check:2ce8...
- `maintenance-window` - Scheduled maintenance periods
- `private-location` - Custom monitoring locations
- `dashboard` - Public status dashboards
- `snippet` - Reusable code snippets
- `status-page` - Status page configurations
- `status-page-service` - Status page service definitions

Expand Down
18 changes: 1 addition & 17 deletions detect/synthetic-monitoring/api-checks/setup-and-teardown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -324,26 +324,10 @@ Check [our runtimes documentation](/platform/runtimes/runtime-specification) for

## Using setup and teardown scripts via the UI

When using the Checkly web UI, you can use setup and teardown scripts in two modes:

**1. Inline scripts**

Write JS/TS code directly in the editor. Best for quick, one-off pieces of code.
When using the Checkly web UI, write JS/TS code directly in the setup and teardown script editors.

![setup and teardown script for http requests](/images/docs/images/api-checks/setup-teardown-inline.png)

**2. Snippets**

Use [snippets](/detect/synthetic-monitoring/api-checks/snippets/) to share code across multiple checks. This approach is similar to working with the CLI but less flexible.

![reusable code snippets](/images/docs/images/api-checks/snippets.png)

Select snippets from the dropdown in the setup and teardown section of your API check.

![setup and teardown script for http requests with snippets](/images/docs/images/api-checks/setup-teardown-snippet.png)

You can also import snippets from within your setup or teardown scripts. See the [snippet documentation](/detect/synthetic-monitoring/api-checks/snippets/) for details.

### Using environment variables via Handlebars

If your API check's request body relies on data from a setup script, use environment variables to pass it.
Expand Down
157 changes: 0 additions & 157 deletions detect/synthetic-monitoring/api-checks/snippets.mdx

This file was deleted.

Loading
Loading