v10.0
post
/ec-query-svc/rest/v10.0/studies/{studyId}/{mode}/report/{reportName}
Generates a new Subject Queries report by study ID and study mode (Testing, Training, or Production). Compared to the previous REST version, this endpoint standardizes report payload handling and callback metadata across versioned routes. This benefits users by improving report-generation consistency and integration traceability.
Request
Path Parameters
-
mode(required): string
Study mode. Allowed values: test (testing sandbox), training (training environment), and active (production).Example:
test -
reportName(required): string
reportName to create an subject query report.Example:
SUBJECT_QUERY -
sessionToken(required): string(uuid)
Session token UUID identifying report retrieval session.Example:
36753A48BBA048CB98A5F3278146118D -
studyId(required): string(uuid)
Clinical One study identifier formatted as a 32 to 36 character GUID.Example:
A1B23C45D67E89F123456789ABCDEF12
Supported Media Types
- application/json
Root Schema : SearchSpecs
Type:
objectTitle:
SearchSpecsRequest body passing search specs like limit, offset and list of fields
Show Source
-
fieldSpecsList: array
fieldSpecsList
Field Specification List. Each element describes a single filter applied to the report.
-
limit: integer
(int32)
Minimum Value:
1Maximum Value:5000Maximum number of records to display per page. Provide a value between 1 and 5000 inclusive. Negative numbers are not accepted.Example:50 -
offset: integer
(int32)
Minimum Value:
0Maximum Value:2147483647An order number to specify with which object you want to start retrieving result. If provided, you also need to specify a value for the limit parameter. Provide a zero or positive value.Example:5
Nested Schema : fieldSpecsList
Type:
arrayField Specification List. Each element describes a single filter applied to the report.
Show Source
-
Array of:
object Field
Generic representation of a report filter. Each entry specifies the field to evaluate, its data type, and the values to use when filtering.
Example:
[
{
"fieldName":"ruleState",
"fieldType":"list",
"fieldSequence":1,
"fieldValueList":[
"approved"
]
}
]Nested Schema : Field
Type:
objectGeneric representation of a report filter. Each entry specifies the field to evaluate, its data type, and the values to use when filtering.
Show Source
-
fieldName(required): string
Minimum Length:
1Maximum Length:255Field name to evaluate. Examples include STUDYID, SITEID, ruleState, and dateRange.Example:ruleState -
fieldSequence: integer
(int32)
Minimum Value:
0Maximum Value:2147483647Sequence/order of the field. Provide a non-negative integer.Example:1 -
fieldType(required): string
Minimum Length:
4Maximum Length:16Allowed Values:[ "list", "date", "date-time", "number", "string", "boolean" ]Field value classification. Use list for enumerations, date for calendar values, date-time for timestamps, number for numeric filters, string for textual filters, or boolean for true/false.Example:list -
fieldValueList(required): array
fieldValueList
List of values for the Field. Provide GUIDs for identifier filters or literal values for textual filters.
Example:
{
"fieldName":"ruleState",
"fieldType":"list",
"fieldSequence":1,
"fieldValueList":[
"approved"
]
}Nested Schema : fieldValueList
Type:
arrayList of values for the Field. Provide GUIDs for identifier filters or literal values for textual filters.
Show Source
-
Array of:
string
Minimum Length:
1Maximum Length:256Example:publish
Example:
[
{
"id":"C36A3197FDEE433FB5547EE83DE99E4B"
}
]Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : Response DTO
Type:
objectBase envelope returned by Query APIs. Use the status field to determine whether result or errorData is populated.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
Result payload returned when status equals success.
-
status: string
Read Only:
trueAllowed Values:[ "success", "failed" ]Overall execution status. Value is success when result is populated and failed when errorData is returned.Example:success -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
Example:
{\n \"status\": \"success\",\n \"result\": {\n \"id\": \"AE33A9096BF548BBB29A96E399E9FBBB\",\n \"state\": \"Answered\"\n },\n \"errorData\": null,\n \"version\": \"1\"\n}Nested Schema : Error details DTO
Type:
objectStandard structure used to describe errors returned by Query APIs.
Show Source
-
details: object
QueryRestErrorDetail
Read Only:
trueContext object returned when additional error metadata is available. -
errorCode: string
Read Only:
trueMachine-readable error code that identifies the failure.Example:QRY-5000 -
errorMessage: string
Read Only:
trueHuman-readable explanation describing why the request failed.Example:Unexpected server error.
Example:
{
"errorCode":"QRY-5000",
"errorMessage":"Unexpected server error.",
"details":{
"requestId":"3b3b8f31-87a3-4dd2-8b9d-21d0c93ef27a",
"supportCode":"QRY-5000",
"hint":"Retry request after verifying the study mode."
}
}Nested Schema : result
Type:
objectResult payload returned when status equals success.
Example:
{
"opened":3,
"answered":1,
"closed":2
}Nested Schema : QueryRestErrorDetail
Type:
objectRead Only:
trueContext object returned when additional error metadata is available.
Show Source
-
hint: string
Client-facing guidance that clarifies how to resolve or retry the request.Example:
Retry request after verifying the study mode. -
requestId: string
Unique identifier that can be supplied to Oracle Support when troubleshooting.Example:
3b3b8f31-87a3-4dd2-8b9d-21d0c93ef27a -
supportCode: string
Support or incident code associated with the error source.Example:
QRY-5000
Example:
{
"requestId":"3b3b8f31-87a3-4dd2-8b9d-21d0c93ef27a",
"supportCode":"QRY-5000",
"hint":"Retry request"
}Examples
400 Response
Request validation failed due to missing, invalid, or inconsistent request data.
Root Schema : Response DTO
Type:
objectBase envelope returned by Query APIs. Use the status field to determine whether result or errorData is populated.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
Result payload returned when status equals success.
-
status: string
Read Only:
trueAllowed Values:[ "success", "failed" ]Overall execution status. Value is success when result is populated and failed when errorData is returned.Example:success -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
Example:
{\n \"status\": \"success\",\n \"result\": {\n \"id\": \"AE33A9096BF548BBB29A96E399E9FBBB\",\n \"state\": \"Answered\"\n },\n \"errorData\": null,\n \"version\": \"1\"\n}Nested Schema : Error details DTO
Type:
objectStandard structure used to describe errors returned by Query APIs.
Show Source
-
details: object
QueryRestErrorDetail
Read Only:
trueContext object returned when additional error metadata is available. -
errorCode: string
Read Only:
trueMachine-readable error code that identifies the failure.Example:QRY-5000 -
errorMessage: string
Read Only:
trueHuman-readable explanation describing why the request failed.Example:Unexpected server error.
Example:
{
"errorCode":"QRY-5000",
"errorMessage":"Unexpected server error.",
"details":{
"requestId":"3b3b8f31-87a3-4dd2-8b9d-21d0c93ef27a",
"supportCode":"QRY-5000",
"hint":"Retry request after verifying the study mode."
}
}Nested Schema : result
Type:
objectResult payload returned when status equals success.
Example:
{
"opened":3,
"answered":1,
"closed":2
}Nested Schema : QueryRestErrorDetail
Type:
objectRead Only:
trueContext object returned when additional error metadata is available.
Show Source
-
hint: string
Client-facing guidance that clarifies how to resolve or retry the request.Example:
Retry request after verifying the study mode. -
requestId: string
Unique identifier that can be supplied to Oracle Support when troubleshooting.Example:
3b3b8f31-87a3-4dd2-8b9d-21d0c93ef27a -
supportCode: string
Support or incident code associated with the error source.Example:
QRY-5000
Example:
{
"requestId":"3b3b8f31-87a3-4dd2-8b9d-21d0c93ef27a",
"supportCode":"QRY-5000",
"hint":"Retry request"
}Examples