diff --git a/docs/platform/variables-and-expressions/runtime-input-usage.md b/docs/platform/variables-and-expressions/runtime-input-usage.md index c43ba4d3f2c..c7c2f23c918 100644 --- a/docs/platform/variables-and-expressions/runtime-input-usage.md +++ b/docs/platform/variables-and-expressions/runtime-input-usage.md @@ -468,13 +468,25 @@ For example, if the original file name is `input.txt`, it will be stored as `inp To get the exact uploaded file name, navigate to the `Output` tab of the upload step execution, where the full file name can be found. #### Retrieve Uploaded File Using cURL -To download the uploaded file, use the following cURL command: +To download the uploaded file, use the following CURL command: ``` -curl --location --request GET 'https://app.harness.io/gateway/pipeline/api/input-file/file/PLAN_EXECUTION_ID?accountIdentifier=ACCOUNT_IDENTIFIER&nodeExecutionId=NODE_EXECUTION_ID&fileName=FILE_NAME' \ +curl --location 'https://app.harness.io/gateway/pipeline/api/input-file/download-file?accountIdentifier=ACCOUNT_IDENTIFIER&filePath=FILE_PATH' \ --header 'x-api-key: PAT_TOKEN' ``` +Parameters: + +- **accountIdentifier**: Required – Specifies the account ID. + +- **filePath**: Required – The file path should follow this format: + +``` +accountId/runtimeFileInputData/pipelineExecutionId/nodeExecutionId/fileName.extension +``` + +You can extract the file path name from the step execution logs or directly via Output Variable. + :::note **Important Notes for Uploading Files as Runtime Input:** @@ -482,6 +494,7 @@ curl --location --request GET 'https://app.harness.io/gateway/pipeline/api/input 2. Each individual file size must not exceed 50 MB. 3. File names with spaces are currently not supported. 4. Supported file types include: `jpg`, `jpeg`, `png`, `pdf`, `xls`, `csv`, `xlsx`, `txt`, `json`, `yaml`, `xml`, and `html`. +5. The total number of upload steps per pipeline cannot exceed two. This includes using templates, saving directly as YAML, or saving through the UI. ::: ### Use the default value instead of failing