Upload inventory data as CSV file
post
/ec-ors-svc/rest/v1.0/studies/{studyId}/{mode}/kits/upload/uploadinventory
Uploads inventory data as a CSV file. Rights: DesignerKitListUpload.
Request
Path Parameters
-
mode(required): string
Mode of the study, accepts: test, active, or training
-
studyId(required): string(uuid)
ID of the study
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Contains inventory upload detail.
Show Source
-
containsHeader: boolean
-
containsHeadersRow(required): string
Pattern:
[yYnN]
Contains header rowExample:y/n
-
fileId(required): string
(uuid)
Unique Id for field.
-
headerMappings: array
headerMappings
Title:
headerMappings
Header mapping. -
headerMappingsMap: object
headerMappingsMap
Additional Properties Allowed: HeaderMapping
-
kitTypeMappings: array
kitTypeMappings
Title:
kitTypeMappings
Kit type mapping.
Nested Schema : headerMappings
Type:
array
Title:
headerMappings
Header mapping.
Show Source
-
Array of:
object HeaderMapping
Contains header mapping.
Nested Schema : headerMappingsMap
Type:
object
Additional Properties Allowed
Show Source
-
object HeaderMapping
Contains header mapping.
Nested Schema : kitTypeMappings
Type:
array
Title:
kitTypeMappings
Kit type mapping.
Show Source
-
Array of:
object KitTypeMapping
Contains kit type mapping.
Nested Schema : HeaderMapping
Type:
object
Contains header mapping.
Show Source
-
dbHeader(required): string
DB headerExample:
Kit Number
-
fileHeader(required): string
File headerExample:
Kit Number
Nested Schema : KitTypeMapping
Type:
object
Contains kit type mapping.
Show Source
-
kitFromFile(required): string
Kit upload from fileExample:
Kit1001
-
kitTypeId(required): string
(uuid)
ID of the kit type.
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : GenerateKitsResponse
Type:
object
Response object of generate kit
Show Source
-
inventorySourceId: string
Unique Id of inventoryExample:
B1B8327AFAA6412287106192AB5984EF
-
noOfKitsGenerated: integer
(int64)
Numbers of kit generatedExample:
10
400 Response
Invalid CSV file format or data
Root Schema : ORSResponse
Type:
object
Common response object.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success
-
version: integer
(int32)
Nested Schema : result
Type:
object
Result Object
Nested Schema : details
Type:
object
404 Response
Invalid study ID
Invalid file identifier
Invalid file identifier
Root Schema : ORSResponse
Type:
object
Common response object.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success
-
version: integer
(int32)
Nested Schema : result
Type:
object
Result Object
Nested Schema : details
Type:
object
500 Response
Internal server error
Root Schema : ORSResponse
Type:
object
Common response object.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
Result Object
-
status: string
Status of requestExample:
Success
-
version: integer
(int32)
Nested Schema : result
Type:
object
Result Object
Nested Schema : details
Type:
object