Download File
Select
Customer Managed
This API will take the downloadId as input from Download API response. The download request id from the response can be used to download the file using getDownloadCenterFileStream API
- application/json
Request Body required
- appTypeId integer
- responseFileName string
fileParams object[]
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Download File
Schema
fileContent object
{
"fileContent": {
"fileName": "string",
"fileSize": 0,
"requestId": "string"
}
}
{
"fileContent": {
"fileName": "test2.zip",
"fileSize": 30074,
"requestId": "414dd598-da30-491d-b462-97109c799112"
}
}
POST /downloadfile
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/DownloadFile' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"appTypeId": 0,
"responseFileName": "string",
"fileParams": [
{
"name": "string",
"id": 0
}
]
}'