Check if a sample exists
|
isSampleExists |
|
|---|---|
|
URL |
/api/v1/isSampleExists |
|
Description |
Checks whether there is an existing sample with the sample name that is entered in the call. |
|
Method |
POST |
|
Request query parameters |
sampleName String. Mandatory. Valid sample name. |
|
Example request |
|
|
Request headers |
Content-Type: application/x-www-form-urlencoded Authorization:API Token |
|
Returns |
true if sample with the sample name that is entered already exists in the organization based on the API token for the user is in header. false if the sample does not exist. |
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 -k https://<server name>/api/v1/isSampleExists -H "Content-Type:application/x-www-form-urlencoded" -H "Authorization:NjMyZmUwODMzOTY3YzVhYzA1OGE5M2I4ZjMyZWY0ZmY1NWQ0YzgyYzhjOTJmZTBjZjZkZTg2N2QxZjA3MGZlMA" -d "sampleName=IR-57220"
