Uploads a file containing rates and processes it to the database

post

/PASService/rest/services/v1/rateGroups/import

This endpoint allows authorized users to upload a file containing rates. The file is then processed and rates are stored in the database.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - multipart/form-data ()
Root Schema : schema
Type: object
Show Source
Back to Top

Response

201 Response

File uploaded and processed successfully

400 Response

Bad request due to invalid input

500 Response

Internal server error during processing
Back to Top

Examples

This example describes how to import RateGroup and its Rates using Excel.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X POST \
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ 
     -L "http://server:port//PASService/rest/services/v1/rateGroups/import" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

{
"overrideWarnings":"Yes"
}
Back to Top