Skip to main content
This section outlines common use cases that require a combination of API requests to accomplish.

Insert a File into the Workflow

POSTing to the Files Resource adds a file to the Send, Receive, or Sent folders for a particular connector. To insert a file into the workflow, POST the file to the Send folder for the first connector that should process the file. For example:
Note that the Content parameter includes the base64-encoded content of the file. If the target connector has Send Automation enabled, the file will automatically be processed. Otherwise, an additional call to the sendFile Action is required to instruct the connector to process the file. For example:

Retrieve the Log File for a Specific Transaction

The getTransactionLogs Action retrieves the log file for a specific action. Invoking this Action requires knowing the MessageId for the relevant transaction. The MessageId can be found by querying the Transactions Resource first (the Transactions Resource returns metadata about the transaction, but not the transaction log file itself). The GET query to the Transactions Resource should include any filters necessary to identify the specific transaction unless the result set can be parsed by some other process to find the MessageId for the desired transaction. For example:
The JSON body of the response will include the MessageId for the specific transaction. Use this MessageId in the getTransactionLogs call along with the other required parameters ConnectorId and Direction (Send or Receive). The IncludeContent parameter should be set to True to include the contents of the log file in the response. For example:
The Content parameter of the response will hold the base64-encoded log file contents.

Call Admin API from Script

You can use Script to send arc:call commands to the Admin API. Each call must start with api.rsc/. The following limitations apply to this feature:
  • OData query syntax is not supported.
  • Rate limiters are not applied.
  • If the script is executed from the Admin Console directly, the user will be the currently logged-in user.
  • If the script is executed by an automation service, the IP address in an audit will be 127.0.0.1.

Retrieve Connectors

The following example is an isolated arc:call command used to retrieve the connectors resource:
This command consists of the following components: The following Script code uses this arc:call command to create a list of all existing connectors:

Create and Modify a Connector

The following example issues a POST command to the Admin API to create a new Script connector in the flow:
After this new connector is created, you can issue a command to the Admin API to get the LogLevel value of the newly-created Script connector:
You can also update the LogLevel of the Script connector with a PUT command: