v5.0
get
/ec-site-svc/rest/v5.0/studies/{studyId}/{mode}/country
Compared with v4, this version adds optional language-based localization for country and state names.
Request
Path Parameters
-
mode(required): string
Study mode. Allowed values: active (live study operations), test (testing data), training (training or sandbox data).Example:
test -
studyId(required): string(uuid)
Study identifier as a 32-character uppercase hexadecimal UUID string.Example:
C36A3197FDEE433FB5547EE83DE99E4B
Query Parameters
-
isoCode3: string
ISO alpha-3 country code.Example:
USA -
language: string
Optional language code for localized response values. Supported examples include en (English) and ja (Japanese). Default is en.Example:
en
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : CountriesResponse v4.0
Type:
objectTitle:
CountriesResponse v4.0Response wrapping the v4 country list with hidden state metadata.
Show Source
-
countriesStates: object
CountryStatesDto v4.0
Title:
CountryStatesDto v4.0Country metadata plus hidden state metadata for v4 APIs.
Nested Schema : CountryStatesDto v4.0
Type:
objectTitle:
CountryStatesDto v4.0Country metadata plus hidden state metadata for v4 APIs.
Show Source
-
comment: string
Title:
CommentMinimum Length:0Maximum Length:2048Additional comment captured for the audited update.Example:Association adjusted after data reconciliation. - hidden: boolean
-
id(required): string
(uuid)
Title:
Country IDUnique country identifier (UUID, 32-character uppercase hexadecimal string). -
isoCode(required): string
Title:
ISO CodeMinimum Length:1Maximum Length:10Alpha-2 ISO code identifying the country.Example:US -
isoCode3(required): string
Title:
ISO Code 3Minimum Length:1Maximum Length:10Alpha-3 ISO code identifying the country.Example:USA -
name(required): string
Title:
Country NameMinimum Length:1Maximum Length:100Official country name.Example:United States -
reason: string
Title:
ReasonMinimum Length:0Maximum Length:255Reason provided for the audited update.Example:Protocol update requested by study operations. -
states: object
StateDto2 v2.0
Title:
StateDto2 v2.0State metadata that includes the hidden flag. -
versionStart: string
(date-time)
Title:
Version StartTimestamp when this country version was created.Example:2025-03-16T12:00:00Z
Example:
[
{
"id":"3F2504E04F8911D39A0C0305E82C3301",
"versionStart":"2025-03-16T12:00:00.000Z",
"isoCode":"US",
"name":"United States",
"isoCode3":"USA",
"hidden":false,
"states":[
{
"id":"9F2504E04F8911D39A0C0305E82C3301",
"versionStart":"2025-03-16T12:00:00.000Z",
"code":"CA",
"name":"California",
"reason":"Legacy mapping",
"comment":"Population threshold 1000000",
"hidden":false
}
]
}
]Nested Schema : StateDto2 v2.0
Type:
objectTitle:
StateDto2 v2.0State metadata that includes the hidden flag.
Show Source
-
code: string
Title:
State CodeISO code identifying the state.Example:CA -
comment: string
Title:
CommentAdditional comment for the state.Example:Population threshold 1000000 - hidden: boolean
-
id: string
(uuid)
Title:
State IDUnique state identifier (UUID, 32-character uppercase hexadecimal string). -
name: string
Title:
State NameOfficial state name.Example:California -
reason: string
Title:
ReasonReason metadata for the state.Example:Legacy mapping -
versionStart: string
(date-time)
Title:
Version StartTimestamp when this state version was created.Example:2025-03-16T12:00:00Z
Example:
[
{
"id":"9F2504E04F8911D39A0C0305E82C3301",
"versionStart":"2025-03-16T12:00:00.000Z",
"code":"CA",
"name":"California",
"reason":"Legacy mapping",
"comment":"Population threshold 1000000",
"hidden":false
}
]Examples
400 Response
Returned when one or more path parameters, query parameters, or request-body values fail endpoint validation.
Root Schema : SDFResponse
Type:
objectTitle:
SDFResponseWrapper for service responses containing result or error data.
Show Source
-
errorData: object
ErrorResponseData
-
result: object
result
The result object for successful requests. Type depends on the API operation.
-
status: string
Status of the response, either 'success' or an error indication.Example:
success
Nested Schema : result
Type:
objectThe result object for successful requests. Type depends on the API operation.
Example:
{
"hasMore":"true",
"totalResults":5,
"count":5,
"data":[
]
}Nested Schema : details
Type:
objectExamples