/import/{modelID}

Runs an import job in one click mode.

API Request Details

URL

{BaseURL}/import/{modelID}

Request Type

POST

Content Type

application/json

Required Header

Name

x-csrf-token

Value

<token>

Additional Parameters

  • delimiter: optional parameter to specify a custom delimiter when the content-type header is set to text/csv.

Sample Request

One-click import with content-type set to text/csv

Version,Date,Bicycle,Shop,QuantitySold,TotalEarnings 
public.Actual,202303,TX100,SHP_01,100,1234.56 
public.Actual,202304,TX101,SHP_02,200,10.00 

Sample Response

201: Created

{ 
    "jobStatus": "COMPLETED", 
    "jobID": "bba3bbae-9e6e", 
    "jobStatusURL": "{BaseURL}/jobs/bba3bbae-9e6e/status", 
    "additionalInformation": { 
        "totalNumberRowsInJob": "5000", 
        "failedNumberRows": "0" 
    } 
} 

Error Responses

HTTP Status Code

Returns

400

Bad Request

403

Unauthorized

404

Not Found

500

Unexpected Error