Automations

Automations in Qlik Automate are no-code workflows which connect applications together.

List automations

Retrieves a list of the automations that the requesting user has access to.

Facts

Rate limit Tier 1 (1000 requests per minute)

Query Parameters

  • filterstring

    Allowed filters: name, runMode, lastRunStatus, ownerId, spaceId

  • limitinteger

    The number of automations to retrieve.

  • listAllboolean

    When true, list all automations. Restricted to tenant admins and analytics admins.

  • sortstring

    The field to sort by, with +- prefix indicating sort order. (?sort=-name => sort on the name field using descending order).

    Can be one of: "id""name""runMode""state""createdAt""updatedAt""lastRunAt""lastRunStatus""+id""+name""+runMode""+state""+createdAt""+updatedAt""+lastRunAt""+lastRunStatus""-id""-name""-runMode""-state""-createdAt""-updatedAt""-lastRunAt""-lastRunStatus""maxConcurrentRuns""+maxConcurrentRuns""-maxConcurrentRuns"

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • dataarray of objects
      Show data properties
      • idstring

        The unique identifier for the automation.

      • namestring

        The name of the automation.

      • statestring

        The state of the automation.

        Can be one of: "available""unavailable""disabled"

      • lastRunobject
        Show lastRun properties
        • idstring

          The unique identifier of the run.

        • errorarray of objects

          List of errors that occurred during the automation run.

        • titlestring

          The title of the automation run.

        • inputsobject
          Experimental

          Input values that have been provided by the user.

        • statusstring

          The current status of the automation run.

          Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

        • contextstring

          The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items).

          Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

        • metricsobject
          Show metrics properties
          • blocksarray of objects

            List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

            Show blocks properties
            • typestring
              Required

              Type of the block.

              Can be one of: "snippetBlock""endpointBlock"

            • rxBytesinteger
              Required

              Total amount of received bytes sent by the current block.

            • txBytesinteger
              Required

              Total amount of sent bytes sent by the current block.

            • apiCallsinteger

              API calls to external resources made by the current block.

            • snippetIdstring

              Unique identifier for the snippet block used within the execution.

            • endpointIdstring

              Unique identifier for the endpoint block used within the execution.

            • connectorIdstring

              Unique identifier for the connector used within the block of the execution.

          • networkobject
            Show network properties
            • rxBytesinteger

              The number of received bytes.

            • txBytesinteger

              The number of sent bytes.

          • totalApiCallsinteger

            The number of API calls made.

        • ownerIdstring

          The unique identifier of the owner of the automation run.

        • spaceIdstring

          The unique identifier of the space in which the automation run is created.

        • testRunboolean

          Indicates if this automation run is a test run.

        • archivedboolean

          Indicates if this automation run is archived.

        • stopTimestring

          The date and time at which the automation run stopped.

        • createdAtstring
        • isTestRunboolean

          Indicates if this automation run is a test run.

        • startTimestring

          The date and time at which the automation run started.

        • updatedAtstring
        • isArchivedboolean

          Indicates if this automation run is archived.

        • executedByIdstring

          The unique identifier of the user who executed the automation run.

        • expectedInputsobject
          Experimental

          User inputs from input blocks that must be populated for the automation run to continue.

        • scheduledStartTimestring

          The date and time at which the automation run is scheduled to start.

      • ownerIdstring

        The unique identifier of the owner of the automation.

      • runModestring

        Defines how the automation run is started.

        Can be one of: "manual""scheduled""triggered""webhook"

      • spaceIdstring

        The unique identifier of the space that contains the automation.

      • durationinteger

        Duration of the last run, indicated in seconds. Calculated from start and stop times.

      • createdAtstring
      • lastRunAtstring

        The date and time when the last automation run was finished.

      • updatedAtstring
      • workspaceobject

        The workspace contains the JSON representation of the used blocks

      • snippetIdsarray of strings

        A list of snippets that were detected in the workspace. This includes snippet blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

      • descriptionstring

        The description of the automation.

      • endpointIdsarray of strings

        A list of endpoints that were detected in the workspace. This includes endpoints present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

      • connectorIdsarray of strings

        A list of connectors that were detected in the workspace. This includes connectors present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

      • lastRunStatusstring

        The status of the last run of the automation.

        Can be one of: "failed""finished""finished with warnings""must stop""not started""paused""running""starting""stopped""exceeded limit"

      • executionTokenstring
      • maxConcurrentRunsinteger

        Maximum number of concurrent runs allowed for automation.

    • linksobject
      Show links properties
      • nextobject
        Show next properties
        • hrefstring

          The URL to a resource request

      • prevobject
        Show prev properties
        • hrefstring

          The URL to a resource request

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

GET /api/v1/automations
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.getAutomations({})
qlik automation ls
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations" \
-H "Authorization: Bearer <access_token>"

Example Response

{
"data": [
{
"id": "e0e720d0-4947-11ec-a1d2-9559fa35801d",
"name": "string",
"state": "available",
"lastRun": {
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"inputs": {},
"status": "failed",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"expectedInputs": {},
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
},
"ownerId": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"runMode": "triggered",
"spaceId": "5f0f78b239ff4f0001234567",
"duration": "9001",
"createdAt": "2021-12-23T12:28:21.000000Z",
"lastRunAt": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"workspace": {},
"snippetIds": [
"e0e720d0-4947-11ec-a1d2-9559fa35801d"
],
"description": "string",
"endpointIds": [
"9d94bef0-b28c-11eb-8dba-01593c457362",
"53a6fb70-b28f-11eb-b601-b545a40867e0"
],
"connectorIds": [
"0d87808f-27c0-11ea-921c-022e6b5ea1e2",
"0d86ee8a-27c0-11ea-921c-022e6b5ea1e2"
],
"lastRunStatus": "finished",
"executionToken": "aZXuEogT9X3le0k0WXMBnzuYKq4xRlkDnurjs8NVhEAAW1BYx8C1PpIl3ielgRb1",
"maxConcurrentRuns": 10
}
],
"links": {
"next": {
"href": "string"
},
"prev": {
"href": "string"
}
}
}

Create an automation

Creates a new automation. The requesting user must be assigned the AutomationCreator role or have at least one of the following scopes: automations, admin.automations, automations.private or automations.shared.

Facts

Rate limit Tier 2 (100 requests per minute)

Request Body

Required

Automation object to create

  • application/jsonobject
    Show application/json properties
    • namestring
    • spaceIdstring
    • schedulesarray of objects
      Show schedules properties
      • stopAtstring
      • startAtstring
      • intervalinteger

        time in seconds.

      • timezonestring
    • workspaceobject

      The workspace generated by the Qlik Automate editor.

    • descriptionstring
    • maxConcurrentRunsinteger

      Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings.

Responses

201

Created

  • application/jsonobject
    Show application/json properties
    • idstring
    • namestring

      The name of the automation.

    • statestring

      The state of the automation.

      Can be one of: "available""unavailable""disabled"

    • lastRunobject
      Show lastRun properties
      • idstring

        The unique identifier of the run.

      • errorarray of objects

        List of errors that occurred during the automation run.

      • titlestring

        The title of the automation run.

      • inputsobject
        Experimental

        Input values that have been provided by the user.

      • statusstring

        The current status of the automation run.

        Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

      • contextstring

        The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items).

        Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

      • metricsobject
        Show metrics properties
        • blocksarray of objects

          List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

          Show blocks properties
          • typestring
            Required

            Type of the block.

            Can be one of: "snippetBlock""endpointBlock"

          • rxBytesinteger
            Required

            Total amount of received bytes sent by the current block.

          • txBytesinteger
            Required

            Total amount of sent bytes sent by the current block.

          • apiCallsinteger

            API calls to external resources made by the current block.

          • snippetIdstring

            Unique identifier for the snippet block used within the execution.

          • endpointIdstring

            Unique identifier for the endpoint block used within the execution.

          • connectorIdstring

            Unique identifier for the connector used within the block of the execution.

        • networkobject
          Show network properties
          • rxBytesinteger

            The number of received bytes.

          • txBytesinteger

            The number of sent bytes.

        • totalApiCallsinteger

          The number of API calls made.

      • ownerIdstring

        The unique identifier of the owner of the automation run.

      • spaceIdstring

        The unique identifier of the space in which the automation run is created.

      • testRunboolean

        Indicates if this automation run is a test run.

      • archivedboolean

        Indicates if this automation run is archived.

      • stopTimestring

        The date and time at which the automation run stopped.

      • createdAtstring
      • isTestRunboolean

        Indicates if this automation run is a test run.

      • startTimestring

        The date and time at which the automation run started.

      • updatedAtstring
      • isArchivedboolean

        Indicates if this automation run is archived.

      • executedByIdstring

        The unique identifier of the user who executed the automation run.

      • expectedInputsobject
        Experimental

        User inputs from input blocks that must be populated for the automation run to continue.

      • scheduledStartTimestring

        The date and time at which the automation run is scheduled to start.

    • ownerIdstring

      The unique identifier of the owner of the automation.

    • runModestring

      Defines how the automation run is started.

      Can be one of: "manual""scheduled""triggered""webhook"

    • spaceIdstring

      The unique identifier of the space that contains the automation.

    • createdAtstring
    • lastRunAtstring

      The date and time when the last automation run was finished.

    • schedulesarray of objects
      Show schedules properties
      • idstring
      • stopAtstring
      • startAtstring
      • intervalinteger

        time in seconds.

      • timezonestring
      • lastStartedAtstring
    • updatedAtstring
    • workspaceobject

      The workspace generated by the Qlik Automate editor.

    • snippetIdsarray of strings

      A list of snippets that were detected in the workspace. This includes snippet blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • descriptionstring

      The description of the automation.

    • endpointIdsarray of strings

      A list of endpoints that were detected in the workspace. This includes endpoints present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • connectorIdsarray of strings

      A list of connectors that were detected in the workspace. This includes connectors present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • lastRunStatusstring

      The status of the last run of the automation.

      Can be one of: "failed""finished""finished with warnings""must stop""not started""paused""running""starting""stopped""exceeded limit"

    • executionTokenstring

      Execution token required to authorize the execution of the automation.

    • maxConcurrentRunsinteger

      Maximum number of concurrent runs allowed for this automation.

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.createAutomation({
description: 'string',
name: 'string',
schedules: [
{
interval: 30,
startAt: '2022-01-01 00:00:00',
stopAt: '2022-12-01 00:00:00',
timezone: 'Europe/Stockholm',
},
],
spaceId: 'string',
workspace: {},
})
qlik automation create \
--description="string" \
--name="string" \
--schedules='{"stopAt":"2022-12-01 00:00:00","startAt":"2022-01-01 00:00:00","interval":30,"timezone":"Europe/Stockholm"}'
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"name":"string","spaceId":"string","schedules":[{"stopAt":"2022-12-01 00:00:00","startAt":"2022-01-01 00:00:00","interval":30,"timezone":"Europe/Stockholm"}],"workspace":{},"description":"string","maxConcurrentRuns":1}'

Example Response

{
"id": "e0e720d0-4947-11ec-a1d2-9559fa35801d",
"name": "string",
"state": "available",
"lastRun": {
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"inputs": {},
"status": "failed",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"expectedInputs": {},
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
},
"ownerId": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"runMode": "triggered",
"spaceId": "5f0f78b239ff4f0001234567",
"createdAt": "2021-12-23T12:28:21.000000Z",
"lastRunAt": "2021-12-23T12:28:21.000000Z",
"schedules": [
{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"stopAt": "2022-12-01 00:00:00",
"startAt": "2021-12-01 00:00:00",
"interval": 30,
"timezone": "Europe/Stockholm",
"lastStartedAt": "2022-01-01T12:28:21.000000Z"
}
],
"updatedAt": "2021-12-23T12:28:21.000000Z",
"workspace": {},
"snippetIds": [
"e0e720d0-4947-11ec-a1d2-9559fa35801d"
],
"description": "string",
"endpointIds": [
"9d94bef0-b28c-11eb-8dba-01593c457362",
"53a6fb70-b28f-11eb-b601-b545a40867e0"
],
"connectorIds": [
"0d87808f-27c0-11ea-921c-022e6b5ea1e2",
"0d86ee8a-27c0-11ea-921c-022e6b5ea1e2"
],
"lastRunStatus": "finished",
"executionToken": "aZXuEogT9X3le0k0WXMBnzuYKq4xRlkDnurjs8NVhEAAW1BYx8C1PpIl3ielgRb1",
"maxConcurrentRuns": 10
}

Get an automation

Retrieves the full definition of an automation. The requesting user must be the owner of the automation and either be assigned one of the roles: AutomationsCreator, TenantAdmin or have at least one of the following scopes (depending on whether the automation is in a private or shared space): automations, automations.private or automations.shared.

Facts

Rate limit Tier 1 (1000 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • idstring
    • namestring

      The name of the automation.

    • statestring

      The state of the automation.

      Can be one of: "available""unavailable""disabled"

    • lastRunobject
      Show lastRun properties
      • idstring

        The unique identifier of the run.

      • errorarray of objects

        List of errors that occurred during the automation run.

      • titlestring

        The title of the automation run.

      • inputsobject
        Experimental

        Input values that have been provided by the user.

      • statusstring

        The current status of the automation run.

        Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

      • contextstring

        The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items).

        Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

      • metricsobject
        Show metrics properties
        • blocksarray of objects

          List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

          Show blocks properties
          • typestring
            Required

            Type of the block.

            Can be one of: "snippetBlock""endpointBlock"

          • rxBytesinteger
            Required

            Total amount of received bytes sent by the current block.

          • txBytesinteger
            Required

            Total amount of sent bytes sent by the current block.

          • apiCallsinteger

            API calls to external resources made by the current block.

          • snippetIdstring

            Unique identifier for the snippet block used within the execution.

          • endpointIdstring

            Unique identifier for the endpoint block used within the execution.

          • connectorIdstring

            Unique identifier for the connector used within the block of the execution.

        • networkobject
          Show network properties
          • rxBytesinteger

            The number of received bytes.

          • txBytesinteger

            The number of sent bytes.

        • totalApiCallsinteger

          The number of API calls made.

      • ownerIdstring

        The unique identifier of the owner of the automation run.

      • spaceIdstring

        The unique identifier of the space in which the automation run is created.

      • testRunboolean

        Indicates if this automation run is a test run.

      • archivedboolean

        Indicates if this automation run is archived.

      • stopTimestring

        The date and time at which the automation run stopped.

      • createdAtstring
      • isTestRunboolean

        Indicates if this automation run is a test run.

      • startTimestring

        The date and time at which the automation run started.

      • updatedAtstring
      • isArchivedboolean

        Indicates if this automation run is archived.

      • executedByIdstring

        The unique identifier of the user who executed the automation run.

      • expectedInputsobject
        Experimental

        User inputs from input blocks that must be populated for the automation run to continue.

      • scheduledStartTimestring

        The date and time at which the automation run is scheduled to start.

    • ownerIdstring

      The unique identifier of the owner of the automation.

    • runModestring

      Defines how the automation run is started.

      Can be one of: "manual""scheduled""triggered""webhook"

    • spaceIdstring

      The unique identifier of the space that contains the automation.

    • createdAtstring
    • lastRunAtstring

      The date and time when the last automation run was finished.

    • schedulesarray of objects
      Show schedules properties
      • idstring
      • stopAtstring
      • startAtstring
      • intervalinteger

        time in seconds.

      • timezonestring
      • lastStartedAtstring
    • updatedAtstring
    • workspaceobject

      The workspace generated by the Qlik Automate editor.

    • snippetIdsarray of strings

      A list of snippets that were detected in the workspace. This includes snippet blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • descriptionstring

      The description of the automation.

    • endpointIdsarray of strings

      A list of endpoints that were detected in the workspace. This includes endpoints present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • connectorIdsarray of strings

      A list of connectors that were detected in the workspace. This includes connectors present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • lastRunStatusstring

      The status of the last run of the automation.

      Can be one of: "failed""finished""finished with warnings""must stop""not started""paused""running""starting""stopped""exceeded limit"

    • executionTokenstring

      Execution token required to authorize the execution of the automation.

    • maxConcurrentRunsinteger

      Maximum number of concurrent runs allowed for this automation.

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

GET /api/v1/automations/{id}
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.getAutomation(
'00000000-0000-0000-0000-000000000000',
)
qlik automation get <automationId>
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}" \
-H "Authorization: Bearer <access_token>"

Example Response

{
"id": "e0e720d0-4947-11ec-a1d2-9559fa35801d",
"name": "string",
"state": "available",
"lastRun": {
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"inputs": {},
"status": "failed",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"expectedInputs": {},
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
},
"ownerId": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"runMode": "triggered",
"spaceId": "5f0f78b239ff4f0001234567",
"createdAt": "2021-12-23T12:28:21.000000Z",
"lastRunAt": "2021-12-23T12:28:21.000000Z",
"schedules": [
{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"stopAt": "2022-12-01 00:00:00",
"startAt": "2021-12-01 00:00:00",
"interval": 30,
"timezone": "Europe/Stockholm",
"lastStartedAt": "2022-01-01T12:28:21.000000Z"
}
],
"updatedAt": "2021-12-23T12:28:21.000000Z",
"workspace": {},
"snippetIds": [
"e0e720d0-4947-11ec-a1d2-9559fa35801d"
],
"description": "string",
"endpointIds": [
"9d94bef0-b28c-11eb-8dba-01593c457362",
"53a6fb70-b28f-11eb-b601-b545a40867e0"
],
"connectorIds": [
"0d87808f-27c0-11ea-921c-022e6b5ea1e2",
"0d86ee8a-27c0-11ea-921c-022e6b5ea1e2"
],
"lastRunStatus": "finished",
"executionToken": "aZXuEogT9X3le0k0WXMBnzuYKq4xRlkDnurjs8NVhEAAW1BYx8C1PpIl3ielgRb1",
"maxConcurrentRuns": 10
}

Update an automation

Updates the full definition of an automation. The requesting user must be the owner of the automation and either be assigned the AutomationCreator role or have at least one of the following scopes: automations, admin.automations, automations.private or automations.shared.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Request Body

Required

Automation object to update

  • application/jsonobject
    Show application/json properties
    • namestring
    • schedulesarray of objects
      Show schedules properties
      • stopAtstring
      • startAtstring
      • intervalinteger

        time in seconds.

      • timezonestring
    • workspaceobject

      The workspace generated by the Qlik Automate editor.

    • descriptionstring
    • maxConcurrentRunsinteger

      Maximum number of concurrent runs allowed for this automation. The maximum value is defined in automations settings.

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • idstring
    • namestring

      The name of the automation.

    • statestring

      The state of the automation.

      Can be one of: "available""unavailable""disabled"

    • lastRunobject
      Show lastRun properties
      • idstring

        The unique identifier of the run.

      • errorarray of objects

        List of errors that occurred during the automation run.

      • titlestring

        The title of the automation run.

      • inputsobject
        Experimental

        Input values that have been provided by the user.

      • statusstring

        The current status of the automation run.

        Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

      • contextstring

        The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items).

        Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

      • metricsobject
        Show metrics properties
        • blocksarray of objects

          List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

          Show blocks properties
          • typestring
            Required

            Type of the block.

            Can be one of: "snippetBlock""endpointBlock"

          • rxBytesinteger
            Required

            Total amount of received bytes sent by the current block.

          • txBytesinteger
            Required

            Total amount of sent bytes sent by the current block.

          • apiCallsinteger

            API calls to external resources made by the current block.

          • snippetIdstring

            Unique identifier for the snippet block used within the execution.

          • endpointIdstring

            Unique identifier for the endpoint block used within the execution.

          • connectorIdstring

            Unique identifier for the connector used within the block of the execution.

        • networkobject
          Show network properties
          • rxBytesinteger

            The number of received bytes.

          • txBytesinteger

            The number of sent bytes.

        • totalApiCallsinteger

          The number of API calls made.

      • ownerIdstring

        The unique identifier of the owner of the automation run.

      • spaceIdstring

        The unique identifier of the space in which the automation run is created.

      • testRunboolean

        Indicates if this automation run is a test run.

      • archivedboolean

        Indicates if this automation run is archived.

      • stopTimestring

        The date and time at which the automation run stopped.

      • createdAtstring
      • isTestRunboolean

        Indicates if this automation run is a test run.

      • startTimestring

        The date and time at which the automation run started.

      • updatedAtstring
      • isArchivedboolean

        Indicates if this automation run is archived.

      • executedByIdstring

        The unique identifier of the user who executed the automation run.

      • expectedInputsobject
        Experimental

        User inputs from input blocks that must be populated for the automation run to continue.

      • scheduledStartTimestring

        The date and time at which the automation run is scheduled to start.

    • ownerIdstring

      The unique identifier of the owner of the automation.

    • runModestring

      Defines how the automation run is started.

      Can be one of: "manual""scheduled""triggered""webhook"

    • spaceIdstring

      The unique identifier of the space that contains the automation.

    • createdAtstring
    • lastRunAtstring

      The date and time when the last automation run was finished.

    • schedulesarray of objects
      Show schedules properties
      • idstring
      • stopAtstring
      • startAtstring
      • intervalinteger

        time in seconds.

      • timezonestring
      • lastStartedAtstring
    • updatedAtstring
    • workspaceobject

      The workspace generated by the Qlik Automate editor.

    • snippetIdsarray of strings

      A list of snippets that were detected in the workspace. This includes snippet blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • descriptionstring

      The description of the automation.

    • endpointIdsarray of strings

      A list of endpoints that were detected in the workspace. This includes endpoints present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • connectorIdsarray of strings

      A list of connectors that were detected in the workspace. This includes connectors present in blocks that are not connected to other blocks. Order of GUIDs is not guaranteed.

    • lastRunStatusstring

      The status of the last run of the automation.

      Can be one of: "failed""finished""finished with warnings""must stop""not started""paused""running""starting""stopped""exceeded limit"

    • executionTokenstring

      Execution token required to authorize the execution of the automation.

    • maxConcurrentRunsinteger

      Maximum number of concurrent runs allowed for this automation.

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

PUT /api/v1/automations/{id}
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.updateAutomation(
'00000000-0000-0000-0000-000000000000',
{
description: 'string',
name: 'string',
schedules: [
{
interval: 30,
startAt: '2022-01-01 00:00:00',
stopAt: '2022-12-01 00:00:00',
timezone: 'Europe/Stockholm',
},
],
workspace: {},
},
)
qlik automation update <automationId> \
--description="string" \
--name="string" \
--schedules='{"stopAt":"2022-12-01 00:00:00","startAt":"2022-01-01 00:00:00","interval":30,"timezone":"Europe/Stockholm"}'
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}" \
-X PUT \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"name":"string","schedules":[{"stopAt":"2022-12-01 00:00:00","startAt":"2022-01-01 00:00:00","interval":30,"timezone":"Europe/Stockholm"}],"workspace":{},"description":"string","maxConcurrentRuns":1}'

Example Response

{
"id": "e0e720d0-4947-11ec-a1d2-9559fa35801d",
"name": "string",
"state": "available",
"lastRun": {
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"inputs": {},
"status": "failed",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"expectedInputs": {},
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
},
"ownerId": "sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy",
"runMode": "triggered",
"spaceId": "5f0f78b239ff4f0001234567",
"createdAt": "2021-12-23T12:28:21.000000Z",
"lastRunAt": "2021-12-23T12:28:21.000000Z",
"schedules": [
{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"stopAt": "2022-12-01 00:00:00",
"startAt": "2021-12-01 00:00:00",
"interval": 30,
"timezone": "Europe/Stockholm",
"lastStartedAt": "2022-01-01T12:28:21.000000Z"
}
],
"updatedAt": "2021-12-23T12:28:21.000000Z",
"workspace": {},
"snippetIds": [
"e0e720d0-4947-11ec-a1d2-9559fa35801d"
],
"description": "string",
"endpointIds": [
"9d94bef0-b28c-11eb-8dba-01593c457362",
"53a6fb70-b28f-11eb-b601-b545a40867e0"
],
"connectorIds": [
"0d87808f-27c0-11ea-921c-022e6b5ea1e2",
"0d86ee8a-27c0-11ea-921c-022e6b5ea1e2"
],
"lastRunStatus": "finished",
"executionToken": "aZXuEogT9X3le0k0WXMBnzuYKq4xRlkDnurjs8NVhEAAW1BYx8C1PpIl3ielgRb1",
"maxConcurrentRuns": 10
}

Delete an automation

Deletes an automation. The requesting user must meet at least one of the following conditions:

  • be the owner of the automation
  • be assigned one of the following roles: AnalyticsAdmin, TenantAdmin
  • have at least one of the following scopes: admin.automations, admin.automations:strict, automations.private, or automations.shared

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Responses

204

No Content

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

DELETE /api/v1/automations/{id}
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.deleteAutomation(
'00000000-0000-0000-0000-000000000000',
)
qlik automation rm <automationId>
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}" \
-X DELETE \
-H "Authorization: Bearer <access_token>"

Change automation owner

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 roles: TenantAdmin, AnalyticsAdmin or have at least one of the following scopes: admin.automations, admin.automations:strict.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Request Body

Required
  • application/jsonobject
    Show application/json properties
    • userIdstring
      Required

      The unique identifier of the new owner.

Responses

204

No Content

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/actions/change-owner
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.changeOwnerAutomation(
'00000000-0000-0000-0000-000000000000',
{ userId: 'sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy' },
)
This API is not included yet in qlik-cli
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/actions/change-owner" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"userId":"sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy"}'

Change automation space

Changes the space of an automation by specifying a new space.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Request Body

  • application/jsonobject
    Show application/json properties
    • spaceIdstring
      Required

      The unique identifier of the new space.

Responses

204

No Content

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/actions/change-space
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.changeSpaceAutomation(
'00000000-0000-0000-0000-000000000000',
{ spaceId: '5f0f78b239ff4f0001234567' },
)
This API is not included yet in qlik-cli
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/actions/change-space" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"spaceId":"5f0f78b239ff4f0001234567"}'

Duplicate an automation

Duplicates an existing automation.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Request Body

Required
  • application/jsonobject
    Show application/json properties
    • namestring
      Required

      Name of the new automation.

Responses

201

Created

  • application/jsonobject
    Show application/json properties
    • idstring

      The unique identifier for the automation.

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/actions/copy
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.copyAutomation(
'00000000-0000-0000-0000-000000000000',
{ name: 'string' },
)
qlik automation copy <automationId> \
--name="string"
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/actions/copy" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"name":"string"}'

Example Response

{
"id": "00000000-0000-0000-0000-000000000000"
}

Disable an automation

Disables an automation so that it cannot be run. To disable an automation, the requesting user must meet at least one of the following conditions:

  • be the owner of the automation
  • be assigned one of the following roles: TenantAdmin, AnalyticsAdmin
  • have at least one of the following scopes: admin.automations, admin.automations:strict, automations.private, or automations.shared

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Responses

204

No Content

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/actions/disable
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.disableAutomation(
'00000000-0000-0000-0000-000000000000',
)
qlik automation disable <automationId>
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/actions/disable" \
-X POST \
-H "Authorization: Bearer <access_token>"

Enable an automation

Enables an automation so that it can be run. To enable an automation, the requesting user must meet at least one of the following conditions:

  • be the owner of the automation
  • be assigned one of the following roles: AnalyticsAdmin, TenantAdmin
  • have at least one of the following scopes: admin.automations, admin.automations:strict, automations.private, or automations.shared

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Responses

204

No Content

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/actions/enable
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.enableAutomation(
'00000000-0000-0000-0000-000000000000',
)
qlik automation enable <automationId>
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/actions/enable" \
-X POST \
-H "Authorization: Bearer <access_token>"

Change automation owner

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 roles: TenantAdmin, AnalyticsAdmin or have at least one of the following scopes: admin.automations, admin.automations:strict.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Request Body

Required
  • application/jsonobject
    Show application/json properties
    • userIdstring
      Required

Responses

204

No Content

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/actions/move
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.moveAutomation(
'00000000-0000-0000-0000-000000000000',
{ userId: 'sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy' },
)
qlik automation move <automationId> \
--userId="sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy"
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/actions/move" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"userId":"sWYAHxZxhtcmBT7Ptc5xJ5I6N7HxwnEy"}'

List automation runs

Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the one of roles: TenantAdmin, AnalyticsAdmin. Alternatively, the user must have at least one of the following scopes: admin.automation-runs, automation-runs.private, or automation-runs.shared.

Facts

Rate limit Tier 1 (1000 requests per minute)

Query Parameters

  • filterstring

    Allowed filters: status, context, startTime, title, spaceId, ownerId, executedById, billable

  • limitinteger

    The number of runs to retrieve.

  • sortstring

    The field to sort by, with +- prefix indicating sort order. (?query=-startTime => sort on the startTime field using descending order)

    Can be one of: "id""status""startTime""-id""-status""-startTime""+id""+status""+startTime"

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • dataarray of objects
      Show data properties
      • idstring
      • errorarray of objects

        List of errors that occurred during the automation run.

      • titlestring

        The title of the automation run.

      • statusstring

        The current status of the automation run.

        Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

      • contextstring

        The context set by the source that triggers the automation.

        Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

      • ownerIdstring

        The unique identifier of the owner of the automation run.

      • spaceIdstring

        The unique identifier of the space in which the automation run is created.

      • testRunboolean

        Indicates if this automation run is a test run.

      • archivedboolean

        Indicates if this automation run is archived.

      • durationinteger

        Duration of the run, indicated in seconds. Calculated from start and stop times

      • stopTimestring

        The date and time at which the automation run stopped.

      • createdAtstring
      • isTestRunboolean

        Indicates if this automation run is a test run.

      • startTimestring

        The date and time at which the automation run started.

      • updatedAtstring
      • isArchivedboolean

        Indicates if this automation run is archived.

      • executedByIdstring

        The unique identifier of the user who executed the automation run.

      • scheduledStartTimestring

        The date and time at which the automation run is scheduled to start.

    • linksobject
      Show links properties
      • nextobject
        Show next properties
        • hrefstring

          The URL to a resource request

      • prevobject
        Show prev properties
        • hrefstring

          The URL to a resource request

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

GET /api/v1/automations/{id}/runs
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.getAutomationRuns(
'00000000-0000-0000-0000-000000000000',
{},
)
qlik automation run ls
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/runs" \
-H "Authorization: Bearer <access_token>"

Example Response

{
"data": [
{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"status": "failed",
"context": "test_run",
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"duration": "9001",
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
}
],
"links": {
"next": {
"href": "string"
},
"prev": {
"href": "string"
}
}
}

Run an automation

Creates a runs for a specific automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:

  • Private space: be the owner of the automation and have the automations.private scope
  • Shared space: be editor or operator in shared space and have automations.shared scope.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

Request Body

Required

Run object to create

  • application/jsonobject
    Show application/json properties
    • contextstring
      Required

      The source that triggers the automation will set the context.

      Can be one of: "api"

Responses

201

Created

  • application/jsonobject
    Show application/json properties
    • idstring

      The unique identifier of the run.

    • errorarray of objects

      List of errors that occurred during the automation run.

    • titlestring

      The title of the automation run.

    • inputsobject
      Experimental

      Input values that have been provided by the user.

    • statusstring

      The current status of the automation run.

      Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

    • contextstring

      The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items).

      Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

    • metricsobject
      Show metrics properties
      • blocksarray of objects

        List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

        Show blocks properties
        • typestring
          Required

          Type of the block.

          Can be one of: "snippetBlock""endpointBlock"

        • rxBytesinteger
          Required

          Total amount of received bytes sent by the current block.

        • txBytesinteger
          Required

          Total amount of sent bytes sent by the current block.

        • apiCallsinteger

          API calls to external resources made by the current block.

        • snippetIdstring

          Unique identifier for the snippet block used within the execution.

        • endpointIdstring

          Unique identifier for the endpoint block used within the execution.

        • connectorIdstring

          Unique identifier for the connector used within the block of the execution.

      • networkobject
        Show network properties
        • rxBytesinteger

          The number of received bytes.

        • txBytesinteger

          The number of sent bytes.

      • totalApiCallsinteger

        The number of API calls made.

    • ownerIdstring

      The unique identifier of the owner of the automation run.

    • spaceIdstring

      The unique identifier of the space in which the automation run is created.

    • testRunboolean

      Indicates if this automation run is a test run.

    • archivedboolean

      Indicates if this automation run is archived.

    • stopTimestring

      The date and time at which the automation run stopped.

    • createdAtstring
    • isTestRunboolean

      Indicates if this automation run is a test run.

    • startTimestring

      The date and time at which the automation run started.

    • updatedAtstring
    • isArchivedboolean

      Indicates if this automation run is archived.

    • executedByIdstring

      The unique identifier of the user who executed the automation run.

    • expectedInputsobject
      Experimental

      User inputs from input blocks that must be populated for the automation run to continue.

    • scheduledStartTimestring

      The date and time at which the automation run is scheduled to start.

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/runs
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.queueAutomationRun(
'00000000-0000-0000-0000-000000000000',
{ context: 'api' },
)
qlik automation run create
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/runs" \
-X POST \
-H "Content-type: application/json" \
-H "Authorization: Bearer <access_token>" \
-d '{"context":"api"}'

Example Response

{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"inputs": {},
"status": "failed",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"expectedInputs": {},
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
}

Get an automation run

Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:

  • Private space: be the owner of the automation and have the automations.private scope
  • Shared space: be editor or operator in shared space and have automations.shared scope.

Facts

Rate limit Tier 1 (1000 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

  • runIdstring
    Required

    The unique identifier for the run.

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • idstring

      The unique identifier of the run.

    • errorarray of objects

      List of errors that occurred during the automation run.

    • titlestring

      The title of the automation run.

    • inputsobject
      Experimental

      Input values that have been provided by the user.

    • statusstring

      The current status of the automation run.

      Can be one of: "failed""finished""finished with warnings""must stop""not started""running""starting""stopped""exceeded limit""queued"

    • contextstring

      The source that triggers the automation will set the context. Certain contexts impact the execution of an automation (for example, The "test_run" context will not process all results when listing items).

      Can be one of: "test_run""editor""detail""api_sync""api_async""webhook""lookup"

    • metricsobject
      Show metrics properties
      • blocksarray of objects

        List of blocks used during execution. Note: this list currently only contains endpointBlocks and snippetBlocks

        Show blocks properties
        • typestring
          Required

          Type of the block.

          Can be one of: "snippetBlock""endpointBlock"

        • rxBytesinteger
          Required

          Total amount of received bytes sent by the current block.

        • txBytesinteger
          Required

          Total amount of sent bytes sent by the current block.

        • apiCallsinteger

          API calls to external resources made by the current block.

        • snippetIdstring

          Unique identifier for the snippet block used within the execution.

        • endpointIdstring

          Unique identifier for the endpoint block used within the execution.

        • connectorIdstring

          Unique identifier for the connector used within the block of the execution.

      • networkobject
        Show network properties
        • rxBytesinteger

          The number of received bytes.

        • txBytesinteger

          The number of sent bytes.

      • totalApiCallsinteger

        The number of API calls made.

    • ownerIdstring

      The unique identifier of the owner of the automation run.

    • spaceIdstring

      The unique identifier of the space in which the automation run is created.

    • testRunboolean

      Indicates if this automation run is a test run.

    • archivedboolean

      Indicates if this automation run is archived.

    • stopTimestring

      The date and time at which the automation run stopped.

    • createdAtstring
    • isTestRunboolean

      Indicates if this automation run is a test run.

    • startTimestring

      The date and time at which the automation run started.

    • updatedAtstring
    • isArchivedboolean

      Indicates if this automation run is archived.

    • executedByIdstring

      The unique identifier of the user who executed the automation run.

    • expectedInputsobject
      Experimental

      User inputs from input blocks that must be populated for the automation run to continue.

    • scheduledStartTimestring

      The date and time at which the automation run is scheduled to start.

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

GET /api/v1/automations/{id}/runs/{runId}
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.getAutomationRun(
'00000000-0000-0000-0000-000000000000',
'00000000-0000-0000-0000-000000000000',
)
qlik automation run get <runId>
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/runs/{runId}" \
-H "Authorization: Bearer <access_token>"

Example Response

{
"id": "d452d100-9b0b-11ec-b199-8323e1031c3e",
"error": [
{}
],
"title": "string",
"inputs": {},
"status": "failed",
"context": "test_run",
"metrics": {
"blocks": [
{
"type": "endpointBlock",
"rxBytes": 18329921,
"txBytes": 18329921,
"apiCalls": 40,
"snippetId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"endpointId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4",
"connectorId": "c35f4b70-3ce4-4a30-b62b-2aef16943bc4"
}
],
"network": {
"rxBytes": 0,
"txBytes": 0
},
"totalApiCalls": 0
},
"ownerId": "string",
"spaceId": "string",
"testRun": true,
"archived": true,
"stopTime": "2021-12-23T12:28:21.000000Z",
"createdAt": "2021-12-23T12:28:21.000000Z",
"isTestRun": true,
"startTime": "2021-12-23T12:28:21.000000Z",
"updatedAt": "2021-12-23T12:28:21.000000Z",
"isArchived": true,
"executedById": "string",
"expectedInputs": {},
"scheduledStartTime": "2021-12-23T12:28:21.000000Z"
}

Export log for automation run

Retrieves the URL for the debug log of a specific automation run. Depending on the space the automation belongs to, the requesting user must meet the following requirement:

  • Private space: be the owner of the automation and have the automations.private scope
  • Shared space: be editor or operator in shared space and have automations.shared scope.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

  • runIdstring
    Required

    The unique identifier for the run.

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • urlstring

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/runs/{runId}/actions/export
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.getAutomationRunDetails(
'00000000-0000-0000-0000-000000000000',
'00000000-0000-0000-0000-000000000000',
)
qlik automation run export \
--runId="string"
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/runs/{runId}/actions/export" \
-X POST \
-H "Authorization: Bearer <access_token>"

Example Response

{
"url": "https://{tenantname}.{region}.qlikcloud.com/api/v1/automations/{id}/runs/{runId}/debug"
}

Retry an automation run

Retries a specific run by creating a new run using the same inputs. Depending on the space the automation belongs to, the requesting user must meet the following requirement:

  • Private space: be the owner of the automation and have the automations.private scope
  • Shared space: be editor or operator in shared space and have automations.shared scope.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

  • runIdstring
    Required

    The unique identifier for the run.

Responses

204

OK Response

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/runs/{runId}/actions/retry
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.retryAutomationRun(
'00000000-0000-0000-0000-000000000000',
'00000000-0000-0000-0000-000000000000',
)
qlik automation run retry \
--runId="string"
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/runs/{runId}/actions/retry" \
-X POST \
-H "Authorization: Bearer <access_token>"

Stop an automation run

Forcefully stops an automation run immediately. Depending on the space the automation belongs to, the requesting user must meet the following requirement:

  • Private space: be the owner of the automation and have the automations.private scope
  • Shared space: be editor or operator in shared space and have automations.shared scope.

Facts

Rate limit Tier 2 (100 requests per minute)

Path Parameters

  • idstring
    Required

    The unique identifier for the automation.

  • runIdstring
    Required

    The unique identifier for the run.

Responses

204

OK Response

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

404

Not found

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

POST /api/v1/automations/{id}/runs/{runId}/actions/stop
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.stopAutomationRun(
'00000000-0000-0000-0000-000000000000',
'00000000-0000-0000-0000-000000000000',
)
qlik automation run stop \
--runId="string"
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/{id}/runs/{runId}/actions/stop" \
-X POST \
-H "Authorization: Bearer <access_token>"

Get automation usage metrics

Retrieves paginated usage metrics for automations. The requesting user must be assigned the TenantAdmin or AnalyticsAdmin role.

Facts

Rate limit Tier 1 (1000 requests per minute)

Query Parameters

  • filterstring
    Required

    Indicates how the metrics should be filtered using a SCIM-style expression. Available parameters:

    • name (specify one or more enums to return specific metrics. Supported enum values: runs, scheduledRuns, triggeredRuns, webhookRuns, duration, bandwidthIn, bandwidthOut)
    • date (return a metric for a specific date or range of dates, e.g. "2025-08-01")
  • breakdownBystring

    If specified, result will be broken apart for each automation

Responses

200

OK Response

  • application/jsonobject
    Show application/json properties
    • dataarray of objects
      Show data properties
      • datestring
        RequiredFilterable

        The date for the metric

      • namestring
        RequiredFilterable

        The name for the metric

        Can be one of: "runs""scheduledRun""triggeredRun""webhookRuns""duration""bandwidthIn""bandwidthOut"

      • valueinteger
        Required

        The value count of the metric

      • automationobject
        Show automation properties
        • guidstring

          The unique identifier for the automation.

        • namestring

          The name for the automation.

        • ownerIdstring

          The unique identifier for the user who owns the automation

400

Bad Request

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

401

Unauthorized

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

403

Forbidden

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

500

Internal Server Error

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

503

Service Unavailable

  • application/jsonobject
    Show application/json properties
    • errorsarray of objects
      Show errors properties
      • codestring
        Required

        The unique code for the error

      • titlestring
        Required

        A summary of what went wrong

      • detailstring

        May be used to provide additional details

    • traceIdstring

      A way to trace the source of the error.

GET /api/v1/automations/usage
import { createQlikApi } from '@qlik/api'
const qlik = createQlikApi({
hostConfig: {
host: 'https://{tenant}.{region}.qlikcloud.com',
apiKey: '<access-token>',
},
})
await qlik.automations.getAutomationsUsageMetrics(
{
filter:
'date ge "2025-08-07" and date le "2025-08-12"',
},
)
qlik automation usage ls
curl "https://{tenant}.{region}.qlikcloud.com/api/v1/automations/usage" \
-H "Authorization: Bearer <access_token>"

Example Response

{
"data": [
{
"date": "2021-12-15",
"name": "bandwidthIn",
"value": 310179713,
"automation": {
"guid": "00000000-0000-0000-0000-000000000000",
"name": "My Automation.",
"ownerId": "KP1zJiPDn0gsla236GmETadFcxBW-J8F"
}
}
]
}