v2.0
get
/ec-site-svc/rest/v2/studies/{studyId}/{mode}/country/{countryId}/states
Compared with v1, this version returns state data with hidden-flag information for the selected country ID.
Request
Path Parameters
-
countryId(required): string
Country identifier as a 32-character uppercase hexadecimal UUID string.Example:
C36A3197FDEE433FB5547EE83DE99E4B -
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
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : StatesResponse v1.0
Type:
objectTitle:
StatesResponse v1.0Response wrapping the state list.
Show Source
-
states: object
StateDto2 v2.0
Title:
StateDto2 v2.0State metadata that includes the hidden flag.
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