Get number of queries in a study
post
/ec-query-svc/rest/v2.0/studies/{studyId}/{mode}/queryCount
Retrieves the number queries by study ID.
Request
Path Parameters
-
mode(required): string
Study mode.
-
studyId(required): string
Study ID.
Supported Media Types
- application/json
Root Schema : QueryCountPostDTO v1.0
Type:
object
Title:
QueryCountPostDTO v1.0
Query Count request payload
Show Source
-
states(required): array
states
Unique Items Required:
true
list of query states -
subjects(required): array
subjects
list of Subject Unique GUIDs
Nested Schema : states
Type:
array
Unique Items Required:
true
list of query states
Show Source
-
Array of:
string(uuid)
list of query states
Example:
["Opened","Answered","Candidate","Closed","Deleted"]]
Nested Schema : subjects
Type:
array
list of Subject Unique GUIDs
Show Source
-
Array of:
string(uuid)
list of Subject Unique GUIDs
Example:
[
"938D23FA6B7241CCA41BD627E5DB60DA",
"699EF3745FC545589F186D2198F3C65E"
]
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : QueryCountResults v2.0
Type:
object
Title:
QueryCountResults v2.0
Query Count result payload
Show Source
Nested Schema : result
Type:
Show Source
array
-
Array of:
object QueryCountResults Entry v2.0
Title:
QueryCountResults Entry v2.0
Query Count result payload entry
Nested Schema : QueryCountResults Entry v2.0
Type:
object
Title:
QueryCountResults Entry v2.0
Query Count result payload entry
Show Source
400 Response
Data is invalid.
Root Schema : Response
Type:
Show Source
object
-
allowedMethods: array
allowedMethods
Unique Items Required:
true
-
closed: boolean
-
cookies: object
cookies
Additional Properties Allowed: NewCookie
-
date: string
(date-time)
-
entity: object
entity
-
entityTag: object
EntityTag
-
headers: object
headers
Additional Properties Allowed: additionalProperties
-
language: object
language
-
lastModified: string
(date-time)
-
length: integer
(int32)
-
links: array
links
Unique Items Required:
true
-
location: string
(uri)
-
mediaType: object
MediaType
-
metadata: object
metadata
Additional Properties Allowed: additionalProperties
-
status: integer
(int32)
-
statusInfo: object
StatusType
-
stringHeaders: object
stringHeaders
Additional Properties Allowed: additionalProperties
Nested Schema : entity
Type:
object
Nested Schema : language
Type:
Show Source
object
-
country: string
-
displayCountry: string
-
displayLanguage: string
-
displayName: string
-
displayScript: string
-
displayVariant: string
-
extensionKeys: array
extensionKeys
Unique Items Required:
true
-
iso3Country: string
-
iso3Language: string
-
language: string
-
script: string
-
unicodeLocaleAttributes: array
unicodeLocaleAttributes
Unique Items Required:
true
-
unicodeLocaleKeys: array
unicodeLocaleKeys
Unique Items Required:
true
-
variant: string
Nested Schema : MediaType
Type:
Show Source
object
-
parameters: object
parameters
Additional Properties Allowed: additionalProperties
-
subtype: string
-
type: string
-
wildcardSubtype: boolean
-
wildcardType: boolean
Nested Schema : StatusType
Type:
Show Source
object
-
family: string
Allowed Values:
[ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ]
-
reasonPhrase: string
-
statusCode: integer
(int32)
Nested Schema : NewCookie
Type:
Show Source
object
-
comment: string
-
domain: string
-
expiry: string
(date-time)
-
httpOnly: boolean
-
maxAge: integer
(int32)
-
name: string
-
path: string
-
sameSite: string
Allowed Values:
[ "NONE", "LAX", "STRICT" ]
-
secure: boolean
-
value: string
-
version: integer
(int32)
Nested Schema : items
Type:
object
Nested Schema : Link
Type:
Show Source
object
-
params: object
params
Additional Properties Allowed: additionalProperties
-
rel: string
-
rels: array
rels
-
title: string
-
type: string
-
uri: string
(uri)
-
uriBuilder: object
UriBuilder
Nested Schema : UriBuilder
Type:
object
Nested Schema : items
Type:
object
404 Response
The query could not be found.
Root Schema : Response
Type:
Show Source
object
-
allowedMethods: array
allowedMethods
Unique Items Required:
true
-
closed: boolean
-
cookies: object
cookies
Additional Properties Allowed: NewCookie
-
date: string
(date-time)
-
entity: object
entity
-
entityTag: object
EntityTag
-
headers: object
headers
Additional Properties Allowed: additionalProperties
-
language: object
language
-
lastModified: string
(date-time)
-
length: integer
(int32)
-
links: array
links
Unique Items Required:
true
-
location: string
(uri)
-
mediaType: object
MediaType
-
metadata: object
metadata
Additional Properties Allowed: additionalProperties
-
status: integer
(int32)
-
statusInfo: object
StatusType
-
stringHeaders: object
stringHeaders
Additional Properties Allowed: additionalProperties
Nested Schema : entity
Type:
object
Nested Schema : language
Type:
Show Source
object
-
country: string
-
displayCountry: string
-
displayLanguage: string
-
displayName: string
-
displayScript: string
-
displayVariant: string
-
extensionKeys: array
extensionKeys
Unique Items Required:
true
-
iso3Country: string
-
iso3Language: string
-
language: string
-
script: string
-
unicodeLocaleAttributes: array
unicodeLocaleAttributes
Unique Items Required:
true
-
unicodeLocaleKeys: array
unicodeLocaleKeys
Unique Items Required:
true
-
variant: string
Nested Schema : MediaType
Type:
Show Source
object
-
parameters: object
parameters
Additional Properties Allowed: additionalProperties
-
subtype: string
-
type: string
-
wildcardSubtype: boolean
-
wildcardType: boolean
Nested Schema : StatusType
Type:
Show Source
object
-
family: string
Allowed Values:
[ "INFORMATIONAL", "SUCCESSFUL", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR", "OTHER" ]
-
reasonPhrase: string
-
statusCode: integer
(int32)
Nested Schema : NewCookie
Type:
Show Source
object
-
comment: string
-
domain: string
-
expiry: string
(date-time)
-
httpOnly: boolean
-
maxAge: integer
(int32)
-
name: string
-
path: string
-
sameSite: string
Allowed Values:
[ "NONE", "LAX", "STRICT" ]
-
secure: boolean
-
value: string
-
version: integer
(int32)
Nested Schema : items
Type:
object
Nested Schema : Link
Type:
Show Source
object
-
params: object
params
Additional Properties Allowed: additionalProperties
-
rel: string
-
rels: array
rels
-
title: string
-
type: string
-
uri: string
(uri)
-
uriBuilder: object
UriBuilder
Nested Schema : UriBuilder
Type:
object
Nested Schema : items
Type:
object