API Reference

Chain

Properties

NameTypeDescriptionRestrictions
concurrency_enabledbooleanWhether or not the chain will execute commands in parallel.
created_atstringA timestamp representing the original creation time of the chain.
descriptionstringA brief summary of what the chain does.
disabledbooleanWhether or not the chain is disabled.
idIDThe unique identifier of a resource (can be a GUID).
internal_idintegerThe unique identifier of the chain resource in the Chains environment.
namestringThe name of the chain.
runtime_inputs[object]Variables available for user input for each execution.
runtime_inputs.data_typestringThe data type of the variable.
runtime_inputs.vuidstringThe unique identifier of the variable.
schedules[ChainSchedule]An array describing the automated schedule for a chain run.
updated_atstringA timestamp representing the last updated time of the chain.

Example

{
  "concurrency_enabled": true,
  "created_at": "2018-03-14 20:10:39.520585",
  "description": "Sends an email when new changes are made to a Workiva spreadsheet.",
  "disabled": false,
  "id": "74",
  "internal_id": 74,
  "name": "Monitoring Chain",
  "runtime_inputs": [
    {
      "data_type": "file",
      "vuid": "45072337-72ee-4c52-9428-0b2ae21ac73c"
    }
  ],
  "schedules": [
    {
      "enabled": true,
      "end_at": "string",
      "properties": {
        "days_of_month": [
          "string"
        ],
        "days_of_week": [
          "string"
        ],
        "recurring_interval": 0,
        "recurring_type": "string",
        "run_at_hours": 0,
        "run_at_minutes": 0,
        "run_at_seconds": 0,
        "zone": "string"
      },
      "start_at": "string"
    }
  ],
  "updated_at": "2018-03-14 20:10:39.520585"
}

Command

Properties

NameTypeDescriptionRestrictions
descriptionstringA brief summary of what the command does.
idIDThe unique identifier of a resource (can be a GUID).
link_idstringThe link ID associated with the command.
namestringThe name of the command.

Example

{
  "description": "string",
  "id": "74",
  "link_id": "string",
  "name": "string"
}

ChainsResponse

Properties

NameTypeDescriptionRestrictions
data[Chain]

Example

{
  "data": [
    {
      "concurrency_enabled": true,
      "created_at": "2018-03-14 20:10:39.520585",
      "description": "Sends an email when new changes are made to a Workiva spreadsheet.",
      "disabled": false,
      "id": "74",
      "internal_id": 74,
      "name": "Monitoring Chain",
      "runtime_inputs": [
        {
          "data_type": "file",
          "vuid": "45072337-72ee-4c52-9428-0b2ae21ac73c"
        }
      ],
      "schedules": [
        {
          "enabled": true,
          "end_at": "string",
          "properties": {
            "days_of_month": [
              "string"
            ],
            "days_of_week": [
              "string"
            ],
            "recurring_interval": 0,
            "recurring_type": "string",
            "run_at_hours": 0,
            "run_at_minutes": 0,
            "run_at_seconds": 0,
            "zone": "string"
          },
          "start_at": "string"
        }
      ],
      "updated_at": "2018-03-14 20:10:39.520585"
    }
  ]
}

ChainResponse

Properties

NameTypeDescriptionRestrictions
dataChain

Example

{
  "data": {
    "concurrency_enabled": true,
    "created_at": "2018-03-14 20:10:39.520585",
    "description": "Sends an email when new changes are made to a Workiva spreadsheet.",
    "disabled": false,
    "id": "74",
    "internal_id": 74,
    "name": "Monitoring Chain",
    "runtime_inputs": [
      {
        "data_type": "file",
        "vuid": "45072337-72ee-4c52-9428-0b2ae21ac73c"
      }
    ],
    "schedules": [
      {
        "enabled": true,
        "end_at": "string",
        "properties": {
          "days_of_month": [
            "string"
          ],
          "days_of_week": [
            "string"
          ],
          "recurring_interval": 0,
          "recurring_type": "string",
          "run_at_hours": 0,
          "run_at_minutes": 0,
          "run_at_seconds": 0,
          "zone": "string"
        },
        "start_at": "string"
      }
    ],
    "updated_at": "2018-03-14 20:10:39.520585"
  }
}

CommandsResponse

Properties

NameTypeDescriptionRestrictions
data[Command]

Example

{
  "data": [
    {
      "description": "string",
      "id": "74",
      "link_id": "string",
      "name": "string"
    }
  ]
}

MappingRuleUploadResult

Properties

NameTypeDescriptionRestrictions
errors[ErrorWithLineNumber]
mappingRules[MappingRule][An object containing information about a mapping rule.]

Example

{
  "errors": [
    {
      "error": "string",
      "lineNumber": 0
    }
  ],
  "mappingRules": [
    {
      "conditions": {
        "combinator": "AND",
        "rules": [
          {
            "combinator": "AND",
            "rules": [
              {
                "field": "string",
                "operator": "NULL",
                "value": [
                  "string"
                ]
              }
            ]
          }
        ]
      },
      "id": 0,
      "mappingGroupGuid": "74",
      "position": 0,
      "source": "string",
      "target": "string",
      "type": "LIKE"
    }
  ]
}

MappingRule

Properties

NameTypeDescriptionRestrictions
conditionsConditions
idinteger
mappingGroupGuidIDThe unique identifier of a resource (can be a GUID).
positioninteger
sourcestring
targetstring
typestring

Enumerated Values

PropertyValue
typeLIKE
typeEXACT
typeREGEX

Example

{
  "conditions": {
    "combinator": "AND",
    "rules": [
      {
        "combinator": "AND",
        "rules": [
          {
            "field": "string",
            "operator": "NULL",
            "value": [
              "string"
            ]
          }
        ]
      }
    ]
  },
  "id": 0,
  "mappingGroupGuid": "74",
  "position": 0,
  "source": "string",
  "target": "string",
  "type": "LIKE"
}

ErrorWithLineNumber

Properties

NameTypeDescriptionRestrictions
errorstring
lineNumberinteger

Example

{
  "error": "string",
  "lineNumber": 0
}

EnvironmentsResponse

Properties

NameTypeDescriptionRestrictions
data[Environment][An object containing information about a particular workspace environment.]

Example

{
  "data": [
    {
      "chains_count": 0,
      "color": "string",
      "created_at": "string",
      "description": "string",
      "id": "74",
      "name": "string",
      "position": 0,
      "settings": {
        "color": "string"
      },
      "updated_at": "string",
      "variables": [
        {
          "defaultValue": "string",
          "encrypted": true,
          "key": "string",
          "label": "string",
          "value": "string"
        }
      ]
    }
  ]
}

EnvironmentResponse

Properties

NameTypeDescriptionRestrictions
dataEnvironmentAn object containing information about a particular workspace environment.

Example

{
  "data": {
    "chains_count": 0,
    "color": "string",
    "created_at": "string",
    "description": "string",
    "id": "74",
    "name": "string",
    "position": 0,
    "settings": {
      "color": "string"
    },
    "updated_at": "string",
    "variables": [
      {
        "defaultValue": "string",
        "encrypted": true,
        "key": "string",
        "label": "string",
        "value": "string"
      }
    ]
  }
}

Environment

Properties

NameTypeDescriptionRestrictions
chains_countinteger(int64)
colorstring
created_atstring
descriptionstring
idIDThe unique identifier of a resource (can be a GUID).
namestring
positioninteger(int64)
settingsobject
settings.colorstring
updated_atstring
variables[Variable]

Example

{
  "chains_count": 0,
  "color": "string",
  "created_at": "string",
  "description": "string",
  "id": "74",
  "name": "string",
  "position": 0,
  "settings": {
    "color": "string"
  },
  "updated_at": "string",
  "variables": [
    {
      "defaultValue": "string",
      "encrypted": true,
      "key": "string",
      "label": "string",
      "value": "string"
    }
  ]
}

ChainRunPageResponse

Properties

NameTypeDescriptionRestrictions
dataChainRunPage

Example

{
  "data": {
    "chainExecutors": [
      {
        "chainId": "74",
        "endAt": "string",
        "envId": "74",
        "id": "74",
        "launchType": "manual",
        "pausedAt": "string",
        "resultText": "string",
        "resumedAt": "string",
        "startAt": "string",
        "state": "sleeping",
        "userId": "74",
        "userName": "string"
      }
    ],
    "cursor": "string"
  }
}

ChainRunPage

Properties

NameTypeDescriptionRestrictions
chainExecutors[ChainRun]An array of the chain runs.
cursorstringCursor value indicating page information for the data to retrieve.

Example

{
  "chainExecutors": [
    {
      "chainId": "74",
      "endAt": "string",
      "envId": "74",
      "id": "74",
      "launchType": "manual",
      "pausedAt": "string",
      "resultText": "string",
      "resumedAt": "string",
      "startAt": "string",
      "state": "sleeping",
      "userId": "74",
      "userName": "string"
    }
  ],
  "cursor": "string"
}

ChainRunResponse

Properties

NameTypeDescriptionRestrictions
dataChainRun

Example

{
  "data": {
    "chainId": "74",
    "endAt": "string",
    "envId": "74",
    "id": "74",
    "launchType": "manual",
    "pausedAt": "string",
    "resultText": "string",
    "resumedAt": "string",
    "startAt": "string",
    "state": "sleeping",
    "userId": "74",
    "userName": "string"
  }
}

ChainRun

Properties

NameTypeDescriptionRestrictions
chainIdIDThe unique identifier of a resource (can be a GUID).
endAtstringThe timestamp at which the chain run completed.
envIdIDThe unique identifier of a resource (can be a GUID).
idIDThe unique identifier of a resource (can be a GUID).
launchTypestringThe type of event that triggered the chain run.
pausedAtstringThe timestamp at which the chain run was paused.
resultTextstringThe result of the chain run.
resumedAtstringThe timestamp at which the chain run was resumed.
startAtstringThe timestamp at which the chain run started.
statestringThe state of the chain run.
userIdIDThe unique identifier of a resource (can be a GUID).
userNamestringThe user that triggered the chain run.

Enumerated Values

PropertyValue
launchTypemanual
launchTypeapi
launchTypeschedule
launchTypetrigger
launchTypeslack
launchTypetrigger_event
statesleeping
stateenqueueing
statepaused
stateerrored
statewarned
stateall_succeeded
statestopped

Example

{
  "chainId": "74",
  "endAt": "string",
  "envId": "74",
  "id": "74",
  "launchType": "manual",
  "pausedAt": "string",
  "resultText": "string",
  "resumedAt": "string",
  "startAt": "string",
  "state": "sleeping",
  "userId": "74",
  "userName": "string"
}

ChainRunWithNodesResponse

Properties

NameTypeDescriptionRestrictions
dataChainRunWithNodesA chain run object with details about all of the command nodes used in that run.

Example

{
  "data": {
    "chainId": "74",
    "endAt": "string",
    "envId": "74",
    "id": "74",
    "launchType": "manual",
    "pausedAt": "string",
    "resultText": "string",
    "resumedAt": "string",
    "startAt": "string",
    "state": "sleeping",
    "userId": "74",
    "userName": "string",
    "nodes": [
      {
        "endAt": "string",
        "id": "74",
        "iterable": true,
        "name": "string",
        "nodeId": "74",
        "nodeType": "command",
        "results": [
          {
            "id": "74",
            "iteratorValue": "string",
            "outputLogUrl": "string",
            "outputVariables": {
              "data": "string",
              "path": "string"
            },
            "state": "active"
          }
        ],
        "startAt": "string",
        "state": "sleeping"
      }
    ]
  }
}

ChainRunWithNodes

Properties

NameTypeDescriptionRestrictions
ChainRun
object
anonymous.nodes[ChainRunNode]

Example

{
  "chainId": "74",
  "endAt": "string",
  "envId": "74",
  "id": "74",
  "launchType": "manual",
  "pausedAt": "string",
  "resultText": "string",
  "resumedAt": "string",
  "startAt": "string",
  "state": "sleeping",
  "userId": "74",
  "userName": "string",
  "nodes": [
    {
      "endAt": "string",
      "id": "74",
      "iterable": true,
      "name": "string",
      "nodeId": "74",
      "nodeType": "command",
      "results": [
        {
          "id": "74",
          "iteratorValue": "string",
          "outputLogUrl": "string",
          "outputVariables": {
            "data": "string",
            "path": "string"
          },
          "state": "active"
        }
      ],
      "startAt": "string",
      "state": "sleeping"
    }
  ]
}

ActivityResponse

Properties

NameTypeDescriptionRestrictions
data[Activity][An object representing an event within chains.]

Example

{
  "data": [
    {
      "created_at": "string",
      "id": "74",
      "key": "string",
      "owner_id": "74",
      "owner_type": "string",
      "parameters": {
        "id": "74"
      },
      "recipient_id": "74",
      "recipient_type": "string",
      "trackable_id": "74",
      "trackable_type": "string",
      "updated_at": "string"
    }
  ]
}

Activity

Properties

NameTypeDescriptionRestrictions
created_atstring
idIDThe unique identifier of a resource (can be a GUID).
keystring
owner_idIDThe unique identifier of a resource (can be a GUID).
owner_typestring
parametersobject
parameters.idIDThe unique identifier of a resource (can be a GUID).
recipient_idIDThe unique identifier of a resource (can be a GUID).
recipient_typestring
trackable_idIDThe unique identifier of a resource (can be a GUID).
trackable_typestring
updated_atstring

Example

{
  "created_at": "string",
  "id": "74",
  "key": "string",
  "owner_id": "74",
  "owner_type": "string",
  "parameters": {
    "id": "74"
  },
  "recipient_id": "74",
  "recipient_type": "string",
  "trackable_id": "74",
  "trackable_type": "string",
  "updated_at": "string"
}

LoginActivityResponse

Properties

NameTypeDescriptionRestrictions
data[LoginActivity][Information about a particular login event.]

Example

{
  "data": [
    {
      "city": "string",
      "context": "string",
      "country": "string",
      "created_at": "string",
      "failure_reason": "string",
      "id": "74",
      "identity": "string",
      "ip": "string",
      "region": "string",
      "success": true,
      "user_id": "74"
    }
  ]
}

LoginActivity

Properties

NameTypeDescriptionRestrictions
citystring
contextstring
countrystring
created_atstring
failure_reasonstring
idIDThe unique identifier of a resource (can be a GUID).
identitystring
ipstring
regionstring
successboolean
user_idIDThe unique identifier of a resource (can be a GUID).

Example

{
  "city": "string",
  "context": "string",
  "country": "string",
  "created_at": "string",
  "failure_reason": "string",
  "id": "74",
  "identity": "string",
  "ip": "string",
  "region": "string",
  "success": true,
  "user_id": "74"
}

PermissionsResponse

Properties

NameTypeDescriptionRestrictions
data[Permission][An object containing information about access permission to particular chains resources.]

Example

{
  "data": [
    {
      "id": "74",
      "name": "read",
      "object_id": "74",
      "object_name": "string",
      "object_type": "string",
      "user_groups": [
        {
          "created_at": "string",
          "default": true,
          "id": "74",
          "name": "string"
        }
      ]
    }
  ]
}

Permission

Properties

NameTypeDescriptionRestrictions
idIDThe unique identifier of a resource (can be a GUID).
namestring
object_idIDThe unique identifier of a resource (can be a GUID).
object_namestring
object_typestring
user_groups[UserGroup][An object containing information about a particular group in Chains.]

Enumerated Values

PropertyValue
nameread
nameexecute
namewrite
namecreate
nameadmin

Example

{
  "id": "74",
  "name": "read",
  "object_id": "74",
  "object_name": "string",
  "object_type": "string",
  "user_groups": [
    {
      "created_at": "string",
      "default": true,
      "id": "74",
      "name": "string"
    }
  ]
}

UserGroupsResponse

Properties

NameTypeDescriptionRestrictions
data[UserGroup][An object containing information about a particular group in Chains.]

Example

{
  "data": [
    {
      "created_at": "string",
      "default": true,
      "id": "74",
      "name": "string"
    }
  ]
}

UserGroupResponse

Properties

NameTypeDescriptionRestrictions
dataUserGroupAn object containing information about a particular group in Chains.

Example

{
  "data": {
    "created_at": "string",
    "default": true,
    "id": "74",
    "name": "string"
  }
}

UserGroup

Properties

NameTypeDescriptionRestrictions
created_atstring
defaultboolean
idIDThe unique identifier of a resource (can be a GUID).
namestring

Example

{
  "created_at": "string",
  "default": true,
  "id": "74",
  "name": "string"
}

UsersResponse

Properties

NameTypeDescriptionRestrictions
data[User][An object containing information about a particular user in Chains.]

Example

{
  "data": [
    {
      "created_at": "string",
      "email": "string",
      "first_name": "string",
      "id": "74",
      "last_name": "string",
      "last_sign_in_at": "string",
      "sso_enabled": true
    }
  ]
}

UserResponse

Properties

NameTypeDescriptionRestrictions
dataUserAn object containing information about a particular user in Chains.

Example

{
  "data": {
    "created_at": "string",
    "email": "string",
    "first_name": "string",
    "id": "74",
    "last_name": "string",
    "last_sign_in_at": "string",
    "sso_enabled": true
  }
}

User

Properties

NameTypeDescriptionRestrictions
created_atstring
emailstring
first_namestring¦null
idIDThe unique identifier of a resource (can be a GUID).
last_namestring¦null
last_sign_in_atstring¦null
sso_enabledboolean

Example

{
  "created_at": "string",
  "email": "string",
  "first_name": "string",
  "id": "74",
  "last_name": "string",
  "last_sign_in_at": "string",
  "sso_enabled": true
}

WorkspacesResponse

Properties

NameTypeDescriptionRestrictions
data[Workspace]

Example

{
  "data": [
    {
      "company_id": "74",
      "description": "string",
      "external_id": "74",
      "id": "74",
      "name": "string",
      "variables": [
        {
          "defaultValue": "string",
          "encrypted": true,
          "key": "string",
          "label": "string",
          "value": "string"
        }
      ]
    }
  ]
}

WorkspaceResponse

Properties

NameTypeDescriptionRestrictions
dataWorkspace

Example

{
  "data": {
    "company_id": "74",
    "description": "string",
    "external_id": "74",
    "id": "74",
    "name": "string",
    "variables": [
      {
        "defaultValue": "string",
        "encrypted": true,
        "key": "string",
        "label": "string",
        "value": "string"
      }
    ]
  }
}

Workspace

Properties

NameTypeDescriptionRestrictions
company_idIDThe unique identifier of a resource (can be a GUID).
descriptionstringA description of the workspace.
external_idIDThe unique identifier of a resource (can be a GUID).
idIDThe unique identifier of a resource (can be a GUID).
namestringThe name of the workspace.
variables[Variable]A list of the workspace's variables.

Example

{
  "company_id": "74",
  "description": "string",
  "external_id": "74",
  "id": "74",
  "name": "string",
  "variables": [
    {
      "defaultValue": "string",
      "encrypted": true,
      "key": "string",
      "label": "string",
      "value": "string"
    }
  ]
}