File operations in ActiveTransfer using APIs

Hi There,

Hope you good.

There is a business need to upload a file using APIs.
I found some documentation, however i’m not able to follow few instruction steps. (As per the attached screen shot). Specifically the step - “Log in to the listener port using your webClient user credentials.”

Kindly assist me to complete a use case whereby i can consume an UPLOAD API to place a file on to a specific directory.

Regards
-Sanjeev

-Sanjeev

We need correction in the documentation Sanjeev,

As of now, these listed APIs supports only basic authentication.

If you already have a user that can access the Web Client, i.e. a HTTP/s port defined in ActiveTransfer Server (ATS) or ActiveTransfer Gateway Server (ATG),
you can pass on basic authentication details of that user to authenticate the API calls.

It is better to configure a dedicated/specific user to invoke these APIs preferably for auditing file transfers done through APIs.

Regards
Biswa

Thanks you Biswa for the quick response,

I tried invoking the API via postman with no luck.
Screen shot below:

ActiveTransfer maintains a list of supported headers (for security reasons).
These are configurable at the following file:
IntegrationServer\instances\default\packages\WmMFT\config\headers.txt

Any HTTP/s request with headers that are not part of the list are immediately rejected (socket itself gets disconnected, without any response).
And the headers that are not supported are logged to the ActiveTransfer log.

Postman adds additional headers as part of API request, which may not be part of that list.
Adding those headers to the file mentioned above should resolve your issue with postman.

Regards
Biswa