Upload input REST file
- Last Updated: March 6, 2025
- 1 minute read
- Hybrid Data Pipeline
- Version 4.6
- Documentation
Purpose
Uploads the input REST file. The REST file must be provided in the form of a JSON object in the request payload. For syntax requirements, refer to Model file syntax in the Progress DataDirect Autonomous REST Connector for JDBC User's Guide.
URL
https://<myserver>:<port>/api/mgmt/datasources/{id}/export/driverfiles/inputrest
Method
POST
URL Parameters
<myserver> is the hostname or IP address of the machine hosting the Hybrid Data Pipeline server for a non-load balancer deployment, or the machine hosting the load balancer for a load balancer deployment. For a non-load balancer deployment, <port> is the port number specified as the Server Access Port during deployment. For a load balancer deployment, <port> must be either 80 for http or 443 for https. Whenever port 80 or 443 are used, it is not necessary to include the port number in the URL.
The {id} parameter must also be specified in the URL.
| Parameter | Description | Valid Values |
|---|---|---|
| {id} | The ID of the data source. | The ID is auto-generated when the data source is created and cannot be changed. |
Sample Request Payload
{
"countries": {
"#path": "http://example.com/country",
"#get": {
"start_date":"2018-08-31",
"end_date":"2018-09-01",
"departments":"[engineering,marketing,sales]",
"tags":"[blue,green,red]"
}
}
}
Sample Server Success Response
Status code: 201
Successful response
{
"countries": {
"#path": "http://example.com/country",
"#get": {
"start_date":"2018-08-31",
"end_date":"2018-09-01",
"departments":"[engineering,marketing,sales]",
"tags":"[blue,green,red]"
}
}
}
Sample Server Failure Response
{
"error": {
"code": 222208734,
"message": {
"lang": "en-US",
"value": "inputrest driver file is not applicable for datasources with
datastore id {1}. Applicable datastore id is 62."
}
}
}
Authentication
Basic Authentication using Login ID and Password.
Authorization
The user must have either the Administrator (12) permission, or the MgmtAPI (11) permission and ModifyDataSource (3) permission on the applicable data source.