---
title: "Create a new 'AutomationSource' entity"
method: POST
path: "/atm-source"
tags: ["AutomationSource"]
---

# Create a new 'AutomationSource' entity

`POST /atm-source`

## Request

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

Creates a new 'AutomationSource' entity. Returns full entity with new id and (optional) creation metadata.

## Request body

- 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

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