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

# Undelete a 'AutomationSource' by id

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

## Request

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

Undeletes a single 'AutomationSource' 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 AutomationSource

- AutomationSource
  - `id` integer: The unique entity id - must be a positive integer
  - `project_id` integer: The project id this entity or mapping belongs to
  - `name` string: The name property
  - `display_name` string: Display name for automation source in user interface
  - `retention_days` number: The retention_days property

## 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)
