---
title: "Export automation"
method: GET
path: "/operations-manager/automations/{id}/export"
tags: ["Operations Manager"]
---

# Export automation

`GET /operations-manager/automations/{id}/export`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/operations-manager/automations/{id}/export`
- Auth: none declared

Exports an Automation.

## Path parameters

- `id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.

## Response `200`

The result of the export operation.

- OperationsManagerExportAutomationResponse200: A success response from an API method
  - `message` string, required: A human-readable message summarizing the result of the operation
  - `data` OperationsManagerAutomationJson, required: An Automation document in JSON/export format.
    - `name` string, required: The name of the document
    - `description` string, required: The description of the document
    - `componentType` union, required: The type of component linked to this Automation.
      - unknown
      - unknown
      - unknown
      - unknown
    - `createdBy` string, nullable
    - `created` string, date-time: An ISO 8601 date string
    - `lastUpdatedBy` string, nullable
    - `lastUpdated` string, date-time: An ISO 8601 date string
    - `_id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
    - `gbac` OperationsManagerAutomationJsonGbac, required
      - `write` OperationsManagerAutomationJsonGbacWriteItems[], required: An array of group objects that have write access to the Automation.
        - `provenance` string, required
        - `name` string, required
        - `description` string, required
      - `read` OperationsManagerAutomationJsonGbacReadItems[], required: An array of group objects that have read/execute access to the Automation.
        - `provenance` string, required
        - `name` string, required
        - `description` string, required
    - `triggers` OperationsManagerAutomationJsonTriggersItems[]
      - union
        - OperationsManagerAutomationJsonTriggersItems0: An Endpoint Trigger in JSON/export format.
          - `name` string, required: The name of the document
          - `description` string: The description of the document
          - `enabled` boolean, required: A flag to determine if this Trigger is enabled or not.
          - `actionType` 'automations', required: The type of component this Trigger will invoke.
          - `actionId` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `options` OperationsManagerAutomationJsonTriggersItemsOneOf0Options: Configuration options specific to this trigger.
            - `targetType` 'instance' | 'group'
            - `targetIdentifier` string, nullable
            - `chooseTargetAtRuntime` boolean
            - `actionId` string: A 4-digit hexadecimal id
          - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
          - `migrationVersion` integer: The current document version of this document.
          - `type` unknown, required
          - `verb` unknown, required
          - `routeName` string, required: User defined route name.
          - `schema` OperationsManagerAutomationJsonTriggersItemsOneOf0Schema, required: POST body filter schema.
          - `createdBy` string, nullable
          - `created` string, date-time: An ISO 8601 date string
          - `lastUpdatedBy` string, nullable
          - `lastUpdated` string, date-time: An ISO 8601 date string
          - `_id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `jst` union, required
            - OperationsManagerAutomationJsonTriggersItemsOneOf0Jst0
            - string
        - OperationsManagerAutomationJsonTriggersItems1: An EventSystem Trigger in JSON/export format.
          - `name` string, required: The name of the document
          - `description` string: The description of the document
          - `enabled` boolean, required: A flag to determine if this Trigger is enabled or not.
          - `actionType` 'automations', required: The type of component this Trigger will invoke.
          - `actionId` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `options` OperationsManagerAutomationJsonTriggersItemsOneOf1Options: Configuration options specific to this trigger.
            - `targetType` 'instance' | 'group'
            - `targetIdentifier` string, nullable
            - `chooseTargetAtRuntime` boolean
            - `actionId` string: A 4-digit hexadecimal id
          - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
          - `migrationVersion` integer: The current document version of this document.
          - `type` unknown, required
          - `source` string, required: The source of the event.
          - `topic` string, required: The event topic.
          - `schema` OperationsManagerAutomationJsonTriggersItemsOneOf1Schema, required: Event payload filter schema.
          - `legacyWrapper` boolean: A boolean determining whether payload data is wrapped in a 'payload' property
          - `createdBy` string, nullable
          - `created` string, date-time: An ISO 8601 date string
          - `lastUpdatedBy` string, nullable
          - `lastUpdated` string, date-time: An ISO 8601 date string
          - `_id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `jst` union, required
            - OperationsManagerAutomationJsonTriggersItemsOneOf1Jst0
            - string
        - OperationsManagerAutomationJsonTriggersItems2: A Manual Trigger in JSON/export format.
          - `name` string, required: The name of the document
          - `description` string: The description of the document
          - `enabled` boolean, required: A flag to determine if this Trigger is enabled or not.
          - `actionType` 'automations', required: The type of component this Trigger will invoke.
          - `actionId` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `options` OperationsManagerAutomationJsonTriggersItemsOneOf2Options: Configuration options specific to this trigger.
            - `targetType` 'instance' | 'group'
            - `targetIdentifier` string, nullable
            - `chooseTargetAtRuntime` boolean
            - `actionId` string: A 4-digit hexadecimal id
          - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
          - `migrationVersion` integer: The current document version of this document.
          - `createdBy` string, nullable
          - `created` string, date-time: An ISO 8601 date string
          - `lastUpdatedBy` string, nullable
          - `lastUpdated` string, date-time: An ISO 8601 date string
          - `type` unknown, required
          - `formData` OperationsManagerAutomationJsonTriggersItemsOneOf2FormData, required: A JSON object created by filling out the associated JSON Form.
          - `formSchemaHash` string, nullable
          - `legacyWrapper` boolean: A boolean determining whether form data is wrapped in a 'formData' property
          - `_id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `formId` union, required: The name or id of a JSON Form used to provide inputs to a job from this trigger.
            - string
            - string
        - OperationsManagerAutomationJsonTriggersItems3: Schema for a Schedule Trigger JSON representation
          - `name` string, required: The name of the document
          - `description` string: The description of the document
          - `enabled` boolean, required: A flag to determine if this Trigger is enabled or not.
          - `actionType` 'automations', required: The type of component this Trigger will invoke.
          - `actionId` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `options` OperationsManagerAutomationJsonTriggersItemsOneOf3Options: Configuration options specific to this trigger.
            - `targetType` 'instance' | 'group'
            - `targetIdentifier` string, nullable
            - `chooseTargetAtRuntime` boolean
            - `actionId` string: A 4-digit hexadecimal id
          - `lastExecuted` integer, nullable: A timestamp in milliseconds of the time this Trigger was last executed.
          - `migrationVersion` integer: The current document version of this document.
          - `createdBy` string, nullable
          - `created` string, date-time: An ISO 8601 date string
          - `lastUpdatedBy` string, nullable
          - `lastUpdated` string, date-time: An ISO 8601 date string
          - `type` unknown, required
          - `formData` OperationsManagerAutomationJsonTriggersItemsOneOf3FormData, required: A JSON object created by filling out the associated JSON Form.
          - `formSchemaHash` string, nullable
          - `legacyWrapper` boolean: A boolean determining whether form data is wrapped in a 'formData' property
          - `firstRunAt` integer, required: A timestamp in milliseconds for the first scheduled run of this Trigger.
          - `nextRunAt` integer, nullable: A timestamp in milliseconds for the next scheduled run of this Trigger.
          - `lastIntervalStart` integer, nullable: A millisecond resolution timestamp denoting when the current run interval started. This is calculated using repeatEnd.
          - `processMissedRuns` 'none' | 'last', required: Describes how any missed job runs should be processed. A missed run is a job that was supposed to be ran at least 'n' seconds ago, but did not due to some issue with IAP (busy process, IAP was down, etc). 'none' means do not run any missed jobs. 'last' means only run the last missed job.
          - `locked` boolean: backend use only
          - `waitFlag` boolean: Deprecated, backend use only
          - `repeat` union: A repetition pattern expressed as a tree of parent and child interval definitions.
            - OperationsManagerAutomationJsonTriggersItemsOneOf3Repeat0
              - …
            - OperationsManagerAutomationJsonTriggersItemsOneOf3Repeat1
              - …
            - OperationsManagerAutomationJsonTriggersItemsOneOf3Repeat2
              - …
          - `repeatUnit` unknown
          - `repeatFrequency` unknown
          - `repeatInterval` integer, nullable, required: The interval between repeated jobs in milliseconds. This is calculated from repeatUnit and repeatFrequency.
          - `_id` string, required: A string which is formatted like an ObjectId, Distinct from an actual ObjectId.
          - `formId` union, required: The name or id of a JSON Form used to provide inputs to a job from this trigger.
            - string
            - string
    - `componentName` string, nullable, required: The name of the component linked to this Automation.
  - `metadata` object, required: Any structured, wordy or machine-readable information related to the result of the operation. For success responses, this may contain information like pagination values from a search operation.

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Operations Manager` added
  - api tag `operationsManager` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/operations-manager/automations/:id/export/get.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
