---
title: "Create a test suite for a DEM journey"
method: POST
path: "/api/v2/dem/journeys/{public_journey_id}/suite"
tags: ["DEM"]
---

# Create a test suite for a DEM journey

`POST /api/v2/dem/journeys/{public_journey_id}/suite`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/dem/journeys/{public_journey_id}/suite`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/dem/journeys/:public_journey_id/suite/post.ts> (a function with typed inputs; its response is checked against the schema)

Trigger test suite creation for a given DEM journey.

## Path parameters

- `public_journey_id` string, required

## Request body

- DemCreateJourneyTestSuiteRequest: Request body for creating a test suite for a DEM journey.
  - `data` DemCreateJourneyTestSuiteData, required: Data object for a create test suite request.
    - `attributes` DemCreateJourneyTestSuiteAttributes: Attributes for creating a test suite for a DEM journey.
      - `include_tests_from_journey_coverage` boolean, nullable: Whether to populate the test suite based on journey coverage data.
      - `test_suite_name` string, nullable: An optional custom name for the auto-created test suite.
    - `type` 'create_test_suite_for_journey_request', required: The resource type for a request to create a DEM journey test suite.

## Response `201`

Created

- DemJourneyTestSuiteResponse: Response body for a DEM journey test suite.
  - `data` DemJourneyTestSuiteResponseData, required: Data object in a DEM test suite response.
    - `attributes` DemJourneyTestSuiteResponseAttributes, required: Attributes of a DEM journey test suite response.
      - `created_at` string, date-time, required: The timestamp when the test suite was created.
      - `dropped_test_ids` string[]: Test IDs omitted because the caller lacks read access.
      - `name` string, required: The name of the test suite.
    - `id` string, required: The public ID of the test suite.
    - `type` 'journey_test_suite', required: The type identifier for DEM journey test suites.

## Other responses

- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/c555647b183a?raw)
