---
title: "Create a test suite"
method: POST
path: "/api/v2/synthetics/suites"
tags: ["Synthetics"]
---

# Create a test suite

`POST /api/v2/synthetics/suites`

## Request body

- SuiteCreateEditRequest — Request body for creating or editing a Synthetic test suite.
  - `data` SuiteCreateEdit, required — Data object for creating or editing a Synthetic test suite.
    - `attributes` SyntheticsSuite, required — Object containing details about a Synthetic suite.
      - `message` string — Notification message associated with the suite.
      - `monitor_id` integer — The associated monitor ID.
      - `name` string, required — Name of the suite.
      - `options` SyntheticsSuiteOptions, required — Object describing the extra options for a Synthetic suite.
        - `alerting_threshold` number, double — Percentage of critical tests failure needed for a suite to fail.
      - `public_id` string — The public ID for the test.
      - `tags` string[] — Array of tags attached to the suite.
      - `tests` SyntheticsSuiteTest[], required — Array of Synthetic tests included in the suite.
        - `alerting_criticality` 'ignore' | 'critical' — Alerting criticality for each the test.
        - `public_id` string, required — The public ID of the Synthetic test included in the suite.
      - `type` 'suite', required — Type of the Synthetic suite, `suite`.
    - `type` 'suites', required — Type for the Synthetics suites responses, `suites`.

## Response `200`

OK

- SyntheticsSuiteResponse — Synthetics suite response
  - `data` SyntheticsSuiteResponseData — Synthetics suite response data
    - `attributes` SyntheticsSuite — Object containing details about a Synthetic suite.
      - `message` string — Notification message associated with the suite.
      - `monitor_id` integer — The associated monitor ID.
      - `name` string, required — Name of the suite.
      - `options` SyntheticsSuiteOptions, required — Object describing the extra options for a Synthetic suite.
        - `alerting_threshold` number, double — Percentage of critical tests failure needed for a suite to fail.
      - `public_id` string — The public ID for the test.
      - `tags` string[] — Array of tags attached to the suite.
      - `tests` SyntheticsSuiteTest[], required — Array of Synthetic tests included in the suite.
        - `alerting_criticality` 'ignore' | 'critical' — Alerting criticality for each the test.
        - `public_id` string, required — The public ID of the Synthetic test included in the suite.
      - `type` 'suite', required — Type of the Synthetic suite, `suite`.
    - `id` string — The public ID for the suite.
    - `type` 'suites' — Type for the Synthetics suites responses, `suites`.

## Other responses

- `400` — API error response.
- `429` — Too many requests

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
