v1.0
get
/ec-query-svc/rest/v1.0/studies/{studyId}/{mode}/queryDetails/dateRange
Retrieves query management records for the requested study and site by query created date range using forward-only cursor pagination. The caller must have ViewAllQueries permission for the requested study. startDate and endDate are inclusive. The end date must be later than the start date. Continuation requests must reuse the same studyId, mode, siteId, startDate, endDate, and limit values with the returned nextPageToken. nextPageToken is null on the last page.
Request
Path Parameters
-
mode(required): string
Study mode. Allowed values: test (testing sandbox), training (training environment), and active (production).Example:
test -
studyId(required): string(uuid)
Clinical One study identifier formatted as a 32-character UUID without dashes.Example:
A1B23C45D67E89F123456789ABCDEF12
Query Parameters
-
endDate(required): string
Minimum Length:
24Maximum Length:24Inclusive date-range end in dd-MMM-yyyy HH:mm:ss.SSS format. The end date must be later than the start date.Example:09-Jun-2026 00:00:00.000 -
limit(required): integer(int32)
Minimum Value:
1Maximum Value:10000Required maximum number of query records to return. Accepted values are positive integers from 1 through 10000; negative values are not accepted.Example:25 -
pageToken: string
Minimum Length:
1Maximum Length:2048Optional opaque URL-safe Base64 cursor token. Omit this value on the first request; on successive calls, set pageToken to the nextPageToken value from the previous response.Example:eyJ2ZXJzaW9uIjoxLCJzdHVkeUlkIjoiQTFCMjNDNDVENjdFODlGMTIzNDU2Nzg5QUJDREVGMTIifQ -
siteId(required): string(uuid)
Minimum Length:
32Maximum Length:36Pattern:^[0-9A-Fa-f-]{32,36}$Required single site identifier used to filter query records for the requested study.Example:F65008AC5A7E44E88B0B5C065E4D19A4 -
startDate(required): string
Minimum Length:
24Maximum Length:24Required inclusive query created start timestamp in dd-MMM-yyyy HH:mm:ss.SSS format.Example:01-Mar-2026 00:00:00.000
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Query details returned successfully. If no query records match the requested filters, results is returned as an empty array.
Root Schema : QueryListByDateRangeRespDTO
Type:
objectQuery Service response envelope for query details returned by created date range.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
QueryListByDateRangeResultDTO
Cursor-paginated query details payload returned in the Query Service response envelope.
-
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
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 : QueryListByDateRangeResultDTO
Type:
objectCursor-paginated query details payload returned in the Query Service response envelope.
Show Source
-
hasMore: boolean
Indicates if there are more results beyond the current page.Example:
true -
limit: integer
(int32)
Minimum Value:
1Maximum Value:10000Maximum number of records returned per page.Example:25 -
nextPageToken: string
Opaque cursor token to request the next page. Null on the last page when hasMore is false.
-
results: array
results
Query records returned for the current page.
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"
}Nested Schema : results
Type:
arrayQuery records returned for the current page.
Show Source
-
Array of:
object QueryDetailsDTOv12Resp
Query management response entry with study role metadata.
Nested Schema : QueryDetailsDTOv12Resp
Type:
objectQuery management response entry with study role metadata.
Show Source
-
comments: array
comments
Query comment history.
-
discrepancyId: integer
(int64)
Discrepancy identifier sourced from Data Capture. Negative values are rejected.Example:
123456789 -
eventInstanceNumber: number
(int64)
Sequence number (0, 1, 2, ...) of the repeating event. Negative values are rejected.Example:
0 -
ExistingStudyRoles: array
ExistingStudyRoles
Existing study role assignments for query comments grouped per interaction.
-
formId: string
(uuid)
Form unique GUID.
-
formInstanceNumber: number
(int64)
Sequence number (0, 1, 2, ...) of the repeating form. Negative values are rejected.Example:
0 -
formName: string
Form display name.Example:
Screening Form -
id: string
(uuid)
Query unique identifier. Value must be a 32 to 36 character hexadecimal GUID.
-
isCycle: boolean
Indicates whether the query is part of a query cycle.Example:
false -
isQueryCreator: boolean
Indicates if the authenticated user created the query (true or false).Example:
true -
itemId: string
(uuid)
Item unique GUID.
-
itemName: string
Item display name.Example:
Date of birth -
objectVersionNumber: number
(int64)
Sequence number (0, 1, 2, ...) of object version. Negative values are rejected.Example:
0 -
propertyName: string
Query property name.Example:
visitStartDate -
propertyType: string
Query property type.Example:
visit -
queryAge: string
Query age value.Example:
3 -
queryModAllowedByUser: boolean
Indicates whether the authenticated user can modify the query.Example:
true -
repeatFormNumber: integer
(int64)
Repeat form sequence number. Negative values are rejected.Example:
1 -
ruleId: string
(uuid)
Rule unique identifier for a query created by a rule.
-
siteId: string
(uuid)
Site unique GUID.
-
studyRoles: array
studyRoles
Study role assignments returned after update.
-
studyVersion: string
Study version associated with the query.Example:
1.0 -
subjectId: string
(uuid)
Subject unique GUID.
-
subjectName: string
Subject display name.Example:
Subject 001 -
typeId: integer
(int32)
Type IdExample:
1 -
userCanAnswerQuery: boolean
Indicates whether the authenticated user can answer the query.Example:
true -
userCanCloseQuery: boolean
Indicates whether the authenticated user can close the query.Example:
true -
visitId: string
(uuid)
Visit unique identifier.
-
visitName: string
Visit display name.Example:
Screening Visit
Nested Schema : ExistingStudyRoles
Type:
arrayExisting study role assignments for query comments grouped per interaction.
Show Source
-
Array of:
array items
Existing study role assignments for query comments grouped per interaction.
Nested Schema : CommentDetailsDTOV2
Type:
Show Source
object-
queryComment: string
Comment text recorded for the query state transition.Example:
Query remains open pending site response. -
state: string
Allowed Values:
[ "Candidate", "Opened", "Answered", "Closed", "Deleted" ]Query state for the comment entry. Candidate = query created but not yet opened; Opened = action required; Answered = awaiting review; Closed = resolved; Deleted = removed from workflow.Example:Opened -
userDisplayName: string
-
userInfo: object
DisplayUserDto
User details including name, username, and email address.
-
userStudyRoleId: string
-
userStudyRoleName: string
-
value: string
Optional value associated with the comment.Example:
Visit data validated. -
versionStart: string
(date-time)
Timestamp when the comment became effective.Example:
2024-03-14T09:15:30Z
Nested Schema : DisplayUserDto
Type:
objectUser details including name, username, and email address.
Show Source
-
emailAddress: string
User's email address.Example:
alice.brown@email.com -
firstName: string
User's first name.Example:
Alice -
id: string
Unique identifier for the user.Example:
1BC29B36F5D64B1B95F4BDBBCEA481BE -
lastName: string
User's last name.Example:
Brown -
userName: string
User's login name.Example:
alicebrown
Nested Schema : items
Type:
arrayExisting study role assignments for query comments grouped per interaction.
Show Source
Nested Schema : QueryStudyRoleDTOv6
Type:
Show Source
object-
studyRoleId: string
(uuid)
Study role of the user performing the query operation
-
studyRoleName: string
Study role name of the user performing the query operationExample:
CRA
Examples
400 Response
Returned when the request cannot be parsed before endpoint validation is performed.
Root Schema : QueryListByDateRangeErrorRespDTO
Type:
objectQuery Service error response envelope for query details returned by created date range.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
No result payload is returned when status equals failed.
-
status: string
Allowed Values:
[ "failed" ]Overall execution status. Value is failed when errorData is returned.Example:failed -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
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:
objectNo result payload is returned when status equals failed.
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
401 Response
Returned when authentication is missing, invalid, or expired. Provide a valid Authorization header.
Root Schema : QueryListByDateRangeErrorRespDTO
Type:
objectQuery Service error response envelope for query details returned by created date range.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
No result payload is returned when status equals failed.
-
status: string
Allowed Values:
[ "failed" ]Overall execution status. Value is failed when errorData is returned.Example:failed -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
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:
objectNo result payload is returned when status equals failed.
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
403 Response
Returned when the authenticated user does not have ViewAllQueries permission for the requested study. Assign this permission through study role administration before calling the API.
Root Schema : QueryListByDateRangeErrorRespDTO
Type:
objectQuery Service error response envelope for query details returned by created date range.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
No result payload is returned when status equals failed.
-
status: string
Allowed Values:
[ "failed" ]Overall execution status. Value is failed when errorData is returned.Example:failed -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
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:
objectNo result payload is returned when status equals failed.
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
422 Response
Returned when required filters are missing or invalid, including missing siteId, multiple siteId values, invalid date-time values, endDate earlier than startDate, limit outside 1 through 10000, an invalid pageToken, or a pageToken whose filters do not match the current request.
Root Schema : QueryListByDateRangeErrorRespDTO
Type:
objectQuery Service error response envelope for query details returned by created date range.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
No result payload is returned when status equals failed.
-
status: string
Allowed Values:
[ "failed" ]Overall execution status. Value is failed when errorData is returned.Example:failed -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
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:
objectNo result payload is returned when status equals failed.
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
500 Response
Returned when an unexpected server error prevents query list retrieval.
Root Schema : QueryListByDateRangeErrorRespDTO
Type:
objectQuery Service error response envelope for query details returned by created date range.
Show Source
-
errorData: object
Error details DTO
Standard structure used to describe errors returned by Query APIs.
-
result: object
result
No result payload is returned when status equals failed.
-
status: string
Allowed Values:
[ "failed" ]Overall execution status. Value is failed when errorData is returned.Example:failed -
version: string
Read Only:
trueSemantic version of the response envelope.Example:1
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:
objectNo result payload is returned when status equals failed.
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