Get data upload path with authentication

getDataUploadPathWithAuth

URL

/api/v1/getDataUploadPathWithAuth

Description

Used by the IonReporterUploader plugin to return the current data upload path that is associated with the API token for the user, based on the configuration of the server.properties file

Method

POST

Request query parameters

auth

String, Mandatory.

Valid API token.

Example request

https://ionreporter.thermofisher.com/api/v1/getDataUploadPathWithAuth

Request headers

Content-Type:application/x-www-form-urlencoded

Returns

/data/IR/data/IR_Org/data/IRU_Uploads

Response fields

Status code

Response message

200

Successful response

400

Bad request

404

Not found

401

User is not authenticated

500

Error occurred

Curl command

curl -X POST -d "auth=NDliYmU0OWE4MzA3YmE2MWVmMjhlZTlhOTEyMmE5ODM0NzU3NjQ4OGM5NzVjODU3YjdlMWM4Mjk3OGYzODE4Yw" --header 
"Content-Type: application/x-www-form-urlencoded" -k https://<your server name>/api/v1/getDataUploadPathWithAuth