---
title: "Undelete a 'AutomationTestCase' by id"
method: POST
path: "/atm-testcase/undelete/{id}"
tags: ["AutomationTestCase"]
---

# Undelete a 'AutomationTestCase' by id

`POST /atm-testcase/undelete/{id}`

## Request

- Base URL: `https://app.testiny.io/api/v1`
- URL: `https://app.testiny.io/api/v1/atm-testcase/undelete/{id}`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/testiny/apis/testiny-api/docs/atm-testcase/undelete/:id/post.ts> (a function with typed inputs; its response is checked against the schema)

Undeletes a single 'AutomationTestCase' entity (only if the entity type supports soft-deletion). Returns a full undeleted entity including (optional) deletion metadata.

## Path parameters

- `id` integer, required

## Response `200`

Returns a single AutomationTestCase

- AutomationTestCase
  - `id` integer: The unique entity id - must be a positive integer
  - `title` string: A descriptive title for this entity or mapping (1 to 1000 characters)
  - `project_id` integer: The project id this entity or mapping belongs to
  - `tags` string: A list of tags for this entity
  - `atm_source_id` integer: The atm_source_id property
  - `atm_key` string: A unique key for test case for matching on import
  - `folder_path` string: The folder_path property
  - `steps` object[]
    - `id` string
    - `title` string, required
  - `description` string, nullable: An optional description for the test case (can be a rich text document, i.e. markdown with header line `<!--markdown-->` or Testiny JSON format)

## Other responses

- `4XX`: The request failed because invalid request parameters or data were supplied or access was denied.
- `5XX`: The request failed because an error occurred during processing of the request.

---

[API](https://skmtc.dev/testiny/apis/testiny-api.md) - [All operations](https://skmtc.dev/testiny/apis/testiny-api/llms.txt) - [OpenAPI document](https://skmtc.dev/testiny/apis/testiny-api/revisions/8f7643b2429d?raw)
