The first call in a PCCIS workflow is to the following URL:
In this call, one of the parameters is the document source in “documentSource”. This parameter controls whether the file will be uploaded or downloaded. The default for this value is “api”, meaning the file will be uploaded. Changing this value to “http” when making that call tells the PCCIS service to download the file.
To use this, you must also specify the “externalId” in the same request. This is usually any value that should uniquely identify the file being viewed -- though this is not enforced. However, when downloading the file, this is the parameter used that tells PCCIS from where to download the file, and must be the full publicly accessible URL of the file.
You also need to specify the “documentExtension” of the file being viewed, such as “pdf”, “doc”, “tif”, and so on.
Adding these 3 values to the POST call will instruct PCCIS to download the file and begin the viewing process. This will eliminate the need for the PUT call to upload the file. All of these values, as well as other parameters for this request are documented here:http://help.accusoft.com/PCC/v8.2/HTML/webframe.html#PCCIS%20RESTful%20Web%20API.html