Automations

Create automation

Create automation

post/workspaces/{workspace_id}/projects/{project_id}/automations

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/projects/{project_id}/automations
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4
project_idinteger required

Project ID of the workspace

Example:4

Request body

namestring required

Name

descriptionstring required

Description

condition_mode'and' | 'or'

Condition Mode

Example request

{
  "name": "Data Consolidation Orchestration",
  "description": "Data Consolidation Orchestration",
  "tasks": [
    {
      "task_type": "append_data",
      "details": {
        "destination_dataset_ids": [
          6
        ],
        "source_folder_resource_id": 1
      },
      "conditions": [
        {
          "condition_type": "new_data_addition_in_folder",
          "details": {
            "file_contains": "less"
          }
        }
      ]
    }
  ]
}

Response

Document created, URL follows

object required

Changes

No recorded changes to this operation across all 3 revisions of this API.