Create a File Set

Send a POST request to Create a file set. The request body must include the patient PID value whose lab results you want to submit for recognition.

curl --location 'https://api.ornament.health/public/file-api/v1.0/fileset/' \
--header 'Content-Type: application/json' \
--header 'Authorization: •••' \
--data '{
"pid": "cc716a7d-f35c-5bfc-85ea-19407ccb4187"
}'

In the response, you will receive the ID of the file set and the ID of the created empty filegroup.

{
    "id": 965,
    "filegroupId": 1338
}