---
title: "Deactivate test entity"
method: POST
path: "/tests/{testId}/entities/{entityId}/deactivate"
tags: ["Tests"]
---

# Deactivate test entity

`POST /tests/{testId}/entities/{entityId}/deactivate`

Deactivates a single test item (test entity).
There may be a delay in the deactivation of the test entity until the next test run.
Use the /vulnerabilities/deactivate endpoint for vulnerabilities.

## Path parameters

- `testId` string, required
- `entityId` string, required

## Request body

- object
  - `deactivateReason` string, required — Reason for deactivating the entity.
  - `deactivateUntilDate` string, date-time — Date until which the entity should be deactivated. If not provided, the entity will be deactivated indefinitely.

## Response `202`

Deactivation request accepted

---

[API](https://skmtc.net/vanta/apis/build-integrations.md) · [All operations](https://skmtc.net/vanta/apis/build-integrations/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vanta/build-integrations/revisions/6c1f7590538b/schema)
