# AutomationModel

Type: object

Fields typed as another model are documented on that model's page; fetch it before filling the field.

| Field | Type | Required | Description | Allowed values / default / constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes | Id of the automation |  |
| `name` | string | yes | Name of the automation |  |
| `owner` | string | yes | Owner of the automation |  |
| `status` | integer, nullable | no | Execution result code: 0 = never executed, 1 = executed successfully, > 1 = error (inspect status_message / status_docs_link). | default: `0` |
| `status_message` | string, nullable | no | Human-readable error description when status > 1. |  |
| `status_docs_link` | string, nullable | no | Documentation link for the error when status > 1. |  |
| `last_updating_user` | string, nullable | no | Last updated user of the automation |  |
| `execution` | [ExecutionStatus](https://dev-api.sheetgo.com/rest/reference/models/ExecutionStatus.md), nullable | no | Execution status of the automation | default: `"completed"` |
| `input_count` | integer, nullable | no | Number of inputs of the automation | default: `0` |
| `output_count` | integer, nullable | no | Number of outputs of the automation | default: `0` |
| `sources` | array of [SourceFile (type = "file")](https://dev-api.sheetgo.com/rest/reference/models/SourceFile.md) or [SourceFolder-Output (type = "folder")](https://dev-api.sheetgo.com/rest/reference/models/SourceFolder-Output.md) or [SourceWebhook (type = "webhook")](https://dev-api.sheetgo.com/rest/reference/models/SourceWebhook.md) or [SourceAPI (type = "api")](https://dev-api.sheetgo.com/rest/reference/models/SourceAPI.md) or [SourceIntegration (type = "integration")](https://dev-api.sheetgo.com/rest/reference/models/SourceIntegration.md) or [SourceBigQuery (type = "bigquery")](https://dev-api.sheetgo.com/rest/reference/models/SourceBigQuery.md) or [SourceOutlook-Output (type = "outlook")](https://dev-api.sheetgo.com/rest/reference/models/SourceOutlook-Output.md) | no | Sources of the automation |  |
| `destinations` | array of [DestinationFile (type = "file")](https://dev-api.sheetgo.com/rest/reference/models/DestinationFile.md) or [DestinationFolder (type = "folder")](https://dev-api.sheetgo.com/rest/reference/models/DestinationFolder.md) or [DestinationDocument (type = "document")](https://dev-api.sheetgo.com/rest/reference/models/DestinationDocument.md) or [DestinationPDF (type = "pdf")](https://dev-api.sheetgo.com/rest/reference/models/DestinationPDF.md) or [DestinationShare (type = "share")](https://dev-api.sheetgo.com/rest/reference/models/DestinationShare.md) or [DestinationMailMerge (type = "mail_merge")](https://dev-api.sheetgo.com/rest/reference/models/DestinationMailMerge.md) or [DestinationWebhook (type = "webhook")](https://dev-api.sheetgo.com/rest/reference/models/DestinationWebhook.md) or [DestinationApiPublish (type = "api")](https://dev-api.sheetgo.com/rest/reference/models/DestinationApiPublish.md) or [DestinationBigQuery-Output (type = "bigquery")](https://dev-api.sheetgo.com/rest/reference/models/DestinationBigQuery-Output.md) or [DestinationFile (type = "file")](https://dev-api.sheetgo.com/rest/reference/models/DestinationFile.md) or [DestinationFolder (type = "folder")](https://dev-api.sheetgo.com/rest/reference/models/DestinationFolder.md) or [DestinationDocument (type = "document")](https://dev-api.sheetgo.com/rest/reference/models/DestinationDocument.md) or [DestinationPDF (type = "pdf")](https://dev-api.sheetgo.com/rest/reference/models/DestinationPDF.md) or [DestinationShare (type = "share")](https://dev-api.sheetgo.com/rest/reference/models/DestinationShare.md) or [DestinationMailMerge (type = "mail_merge")](https://dev-api.sheetgo.com/rest/reference/models/DestinationMailMerge.md) or [DestinationWebhook (type = "webhook")](https://dev-api.sheetgo.com/rest/reference/models/DestinationWebhook.md) or [DestinationApiPublish (type = "api")](https://dev-api.sheetgo.com/rest/reference/models/DestinationApiPublish.md) or [DestinationBigQuery-Output (type = "bigquery")](https://dev-api.sheetgo.com/rest/reference/models/DestinationBigQuery-Output.md), nullable | no | Destinations of the automation |  |
| `ai` | [AIProcessor](https://dev-api.sheetgo.com/rest/reference/models/AIProcessor.md), nullable | no | The AI step, when the automation has one. |  |
| `anonymize` | [AnonymizeProcessor](https://dev-api.sheetgo.com/rest/reference/models/AnonymizeProcessor.md), nullable | no | The Anonymize step, when the automation has one. |  |
| `merge` | [MergeProcessor](https://dev-api.sheetgo.com/rest/reference/models/MergeProcessor.md), nullable | no | The Merge step, when the automation has one. |  |
| `filter` | [FilterCondition-Output (type = "condition")](https://dev-api.sheetgo.com/rest/reference/models/FilterCondition-Output.md) or [FilterColumn (type = "column")](https://dev-api.sheetgo.com/rest/reference/models/FilterColumn.md) or [FilterQuery (type = "query")](https://dev-api.sheetgo.com/rest/reference/models/FilterQuery.md), nullable | no | The Filter step, when the automation has one the API can represent (nested groups, colour filters and conditions combined with a column selection read back as null). |  |
| `left_join` | [LeftJoinProcessor](https://dev-api.sheetgo.com/rest/reference/models/LeftJoinProcessor.md), nullable | no | The Left join step, when the automation has one. |  |
| `remove_duplicates` | [RemoveDuplicatesProcessor](https://dev-api.sheetgo.com/rest/reference/models/RemoveDuplicatesProcessor.md), nullable | no | The Remove duplicates step, when the automation has one. |  |
| `split` | [Split](https://dev-api.sheetgo.com/rest/reference/models/Split.md), nullable | no | The Split step, when the automation has one. |  |

## Used by

- [GET /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#get-rest-beta-automations)
- [GET /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#get-rest-beta-automations-id)
- [PATCH /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#patch-rest-beta-automations-id)
- [POST /rest/beta/automations/](https://dev-api.sheetgo.com/rest/reference/automations.md#post-rest-beta-automations)
- [PUT /rest/beta/automations/{id}](https://dev-api.sheetgo.com/rest/reference/automations.md#put-rest-beta-automations-id)
- [PaginatedResponse_AutomationModel_](https://dev-api.sheetgo.com/rest/reference/models/PaginatedResponse_AutomationModel_.md)

---

More: start page https://dev-api.sheetgo.com/rest/reference.md, everything in one file https://dev-api.sheetgo.com/rest/llms-full.txt, OpenAPI https://dev-api.sheetgo.com/rest/openapi.json.
