---
title: "Get parent tests for a subtest"
method: GET
path: "/api/v2/synthetics/api-multistep/subtests/{public_id}/parents"
tags: ["Synthetics"]
---

# Get parent tests for a subtest

`GET /api/v2/synthetics/api-multistep/subtests/{public_id}/parents`

Get the list of API multistep tests that include a given subtest,
along with their monitor status.

## Path parameters

- `public_id` string, required

## Response `200`

OK

- SyntheticsApiMultistepParentTestsResponse — Response containing the list of parent tests for an API multistep subtest.
  - `data` SyntheticsApiMultistepParentTestData[] — List of parent tests that include this subtest.
    - `attributes` SyntheticsApiMultistepParentTestAttributes — Attributes of a parent API multistep test.
      - `child_name` string — The name of the child subtest.
      - `child_public_id` string — The public ID of the child subtest.
      - `monitor_id` integer — The associated monitor ID.
      - `name` string — Name of the parent test.
      - `overall_state` integer — The overall state of the parent test.
      - `overall_state_modified` string — Timestamp of when the overall state was last modified.
      - `public_id` string — The public ID of the parent test.
    - `id` string — The public ID of the parent test.
    - `type` 'parent_test' — Type of the parent test resource.

## Other responses

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

---

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