---
title: "Validate Xray Plan Preflight Validation"
method: POST
path: "/tcm/external/xray/planPreflightValidation"
tags: ["TestCaseManagement"]
---

# Validate Xray Plan Preflight Validation

`POST /tcm/external/xray/planPreflightValidation`

Validates a Plan save operation for Xray

## Request body

- PlanXrayTestsPreflightValidationRequest — Payload for Plan Xray Tests Preflight Validation request
  - `workspace_id` string, required — The workspace ID
  - `integration_id` string, required — The workspace integration ID to validate against. All tests' bindings must match this integration.
  - `test_ids` string[], required — The IDs of the tests to validate

## Response `200`

Validation result

- PlanXrayTestsPreflightValidationResult — Result of a preflight validation check for a Plan save operation.
  - `valid` boolean — Indicates whether the plan is valid for saving
  - `tests_with_warnings` string[] — List of Test IDs that are associated with a different (but disabled) Xray Project
  - `ineligible_tests` string[] — List of Test IDs that are associated with a different (and enabled) Xray Project

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `404` — Entity not found
- `default` — Unknown error

---

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