Cloud Data Download Service API
From Genesys Documentation
This topic is part of the manual Genesys Multicloud CX Web-based API Reference for version Current of Developer.
Contents
Warning
The Cloud Data Download Service API has been deprecated, and should be replaced by the User Data Management API. This page remains only as a reference for legacy users.Base path: /data-download
GET
|
/v3/cipher
Get certificate information
|
Responses
Code | Reason | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||
|
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/cipher?"
POST
|
/v3/cipher/{certificatefilename}
POST the specified certificate
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
certificatefilename | path | string | true | ||
file | formData | file |
Responses
Code | Reason |
---|---|
201 | Created |
"string" | |
400 | Bad Request |
Usage
curl -X POST
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/cipher/{certificatefilename}?"
GET
|
/v3/data/job-statuses
Get list of job statuses
|
Responses
Code | Reason | ||||||||
---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||
|
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/data/job-statuses?"
GET
|
/v3/data/sources
Get list of sources
|
Responses
Code | Reason | ||||||||
---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||
| |||||||||
204 | No Content |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/data/sources?"
GET
|
/v3/data/sub-types
Get list of data subtypes
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
source | Filter data sub types by source | query | string | ||
dataType | Filter data types by type | query | string |
Responses
Code | Reason | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||||
| |||||||||||||||
204 | No Content | ||||||||||||||
400 | Bad Request |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/data/sub-types?source=string&dataType=string"
GET
|
/v3/data/types
Get list of types
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
source | Filter data types by source | query | string |
Responses
Code | Reason | ||||||||
---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||
| |||||||||
204 | No Content |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/data/types?source=string"
GET
|
/v3/file-metadatas
Get list of files metadata
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
descAsc | Specifies the sort order of orderField. False for ascending order, true for descending | query | boolean | ||
orderField | By which field to order | query | string | ||
startDate | startDate | query | string | ||
endDate | Filter to which upload date | query | string | ||
name | Filter that file name contains | query | string | ||
jobTitle | Filter that job title contains | query | string | ||
type | Filter that file type contains | query | string | ||
from | 0 | Index of the first item to return | query | integer | |
size | 999999999 | Maximum number of items to return | query | integer |
Responses
Code | Reason | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||
|
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/file-metadatas?descAsc=true&orderField=string&startDate=string&endDate=string&name=string&jobTitle=string&type=string&from=0&size=0"
GET
|
/v3/files
Get the list of pre-signed url for specified files list
|
The maximum number of files is limited to 100. Also if some files cannot be found HTTP 404 is returned with a list of the files that weren’t found as json array in the body.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
filename | A comma-separated list of file names | query | string |
Responses
Code | Reason | ||||||
---|---|---|---|---|---|---|---|
200 | Ok | ||||||
| |||||||
400 | Bad Request | ||||||
404 | File Not Found | ||||||
|
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/files?filename=string"
DELETE
|
/v3/files
Delete the specified files list
|
In case if some files cannot be deleted internal server error is returned with a list of files that weren’t deleted as json array in the body.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
filename | A comma-separated list of file names | query | string | true |
Responses
Code | Reason |
---|---|
204 | No Content |
Usage
curl -X DELETE
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/files?filename=string"
GET
|
/v3/files/{filename}
Get the specified file
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
filename | The name of the file | path | string | true |
Responses
Code | Reason |
---|---|
303 | See Other |
404 | File Not Found |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/files/{filename}?"
DELETE
|
/v3/files/{filename}
Delete the specified file
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
filename | The name of the file | path | string | true |
Responses
Code | Reason |
---|---|
204 | No Content |
Usage
curl -X DELETE
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/files/{filename}?"
GET
|
/v3/version
Get version information
|
Responses
Code | Reason | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||
|
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v3/version?"
GET
|
/v4/export/history
Get list of jobs info
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
descAsc | Specifies the sort order of orderField. False for ascending order, true for descending | query | boolean | ||
orderField | By which field to order | query | string | ||
title | Filter that title contains | query | string | ||
fileName | Filter that file name contains | query | string | ||
type | Filter that type contains | query | string | ||
status | Filter that file name contains | query | string | ||
from | 0 | Index of the first item to return | query | integer | |
size | 999999999 | Maximum number of items to return | query | integer |
Responses
Code | Reason | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||
| |||||||||||||
204 | No Content |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/history?descAsc=true&orderField=string&title=string&fileName=string&type=string&status=string&from=0&size=0"
DELETE
|
/v4/export/history
Delete the specified jobs list
|
In case if some jobs cannot be deleted internal server error is returned with a list of jobs that weren't deleted as json array in the body. A job with status in progress cannot be deleted.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
jobIDs | A comma-separated list of job IDs | query | string | true |
Responses
Code | Reason |
---|---|
204 | No Content |
400 | Bad Request |
Usage
curl -X DELETE
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/history?jobIDs=string"
GET
|
/v4/export/history/{id}
Get specified jobs history
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
400 | Bad Request | ||||||||||||||||||||||||||||||||||
404 | ManualJob Not Found |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/history/{id}?"
DELETE
|
/v4/export/history/{id}
Delete the specified job
|
A job in progress can not be deleted.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason |
---|---|
204 | No Content |
400 | Bad Request |
Usage
curl -X DELETE
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/history/{id}?"
GET
|
/v4/export/history/{id}/progress
Get currently running job completion progress
|
Return value is between 0 and 100 percent.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job history | path | string | true |
Responses
Code | Reason | ||||||||
---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||
| |||||||||
400 | Bad Request |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/history/{id}/progress?"
GET
|
/v4/export/jobs
Get list of jobs info
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
descAsc | Specifies the sort order of orderField. False for ascending order, true for descending | query | boolean | ||
orderField | By which field to order | query | string | ||
title | Filter that title contains | query | string | ||
type | Filter that type contains | query | string | ||
scheduleType | Filter that file name contains | query | string | ||
suspend | Filter that schedule type contains | query | boolean | ||
from | 0 | Index of the first item to return | query | integer | |
size | 999999999 | Maximum number of items to return | query | integer |
Responses
Code | Reason | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||
| |||||||||||||
204 | No Content |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs?descAsc=true&orderField=string&title=string&type=string&scheduleType=string&suspend=true&from=0&size=0"
POST
|
/v4/export/jobs
Save specified manualJob
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
body | body | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Code | Reason | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
202 | Accepted | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
400 | Bad Request |
Usage
curl -X POST
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
-d '{
"source": "string",
"title": "string",
"timeFrame": {
"all": true,
"dateFrom": "string",
"dateTo": "string"
},
"fileSplitSize": "string",
"description": "string",
"schedulerParam": {
"immediately": true,
"cron": "string",
"runs": "string",
"startDate": "string"
},
"jobParams": {
"fileSplitSize": "string",
"type": "string",
"media": [
]
},
"suspended": "string"
}'
"https://api-demo.com/data-download/v4/export/jobs?"
DELETE
|
/v4/export/jobs
Delete the specified jobs list
|
In case if some jobs cannot be deleted internal server error is returned with a list of jobs that weren't deleted as json array in the body. A job with status in progress cannot be deleted.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
jobIDs | A comma-separated list of job IDs | query | string | true |
Responses
Code | Reason |
---|---|
204 | No Content |
400 | Bad Request |
Usage
curl -X DELETE
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs?jobIDs=string"
POST
|
/v4/export/jobs/cancel/{id}
Cancel running
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason |
---|---|
200 | Ok |
400 | Bad Request |
404 | Not Found |
Usage
curl -X POST
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs/cancel/{id}?"
POST
|
/v4/export/jobs/resume/{id}
Save specified manualJob
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
400 | Bad Request | ||||||||||||||||||||||||||||||||||
404 | Job Not Found |
Usage
curl -X POST
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs/resume/{id}?"
POST
|
/v4/export/jobs/suspend/{id}
Save specified manualJob
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
400 | Bad Request | ||||||||||||||||||||||||||||||||||
404 | Job Not Found |
Usage
curl -X POST
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs/suspend/{id}?"
GET
|
/v4/export/jobs/{id}
Get specified job
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
400 | Bad Request | ||||||||||||||||||||||||||||||||||
404 | ManualJob Not Found |
Usage
curl -X GET
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs/{id}?"
PUT
|
/v4/export/jobs/{id}
Save specified manualJob
|
Parameters
Name | Default | Description | Parameter Type | Data Type | Required | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | path | string | true | ||||||||||||||||||||||||||||||||||||||||||||||||
body | body | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Responses
Code | Reason | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 | Ok | ||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
400 | Bad Request | ||||||||||||||||||||||||||||||||||
404 | Job Not Found |
Usage
curl -X PUT
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
-d '{
"source": "string",
"title": "string",
"timeFrame": {
"all": true,
"dateFrom": "string",
"dateTo": "string"
},
"fileSplitSize": "string",
"description": "string",
"schedulerParam": {
"immediately": true,
"cron": "string",
"runs": "string",
"startDate": "string"
},
"jobParams": {
"fileSplitSize": "string",
"type": "string",
"media": [
]
},
"suspended": "string"
}'
"https://api-demo.com/data-download/v4/export/jobs/{id}?"
DELETE
|
/v4/export/jobs/{id}
Delete the specified job
|
A job in progress can not be deleted.
Parameters
Name | Default | Description | Parameter Type | Data Type | Required |
---|---|---|---|---|---|
id | The id of the job | path | string | true |
Responses
Code | Reason |
---|---|
204 | No Content |
400 | Bad Request |
Usage
curl -X DELETE
-H "x-api-key: your_API_key"
-H "Content-Type: application/json"
"https://api-demo.com/data-download/v4/export/jobs/{id}?"
Comments or questions about this documentation? Contact us for support!