Function moveAutomation

  • Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: TenantAdmin, AnalyticsAdmin or have at least one of the following scopes: admin.automations, admin.automations:strict.

    Parameters

    • id: string

      The unique identifier for the automation.

    • body: { userId: string }

      an object with the body content

      • userId: string

        Unique identifier of the new owner of the automation.

    • Optionaloptions: ApiCallOptions

    Returns Promise<automations.MoveAutomationHttpResponse>

    MoveAutomationHttpError