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
  • Country identifier as a 32-character uppercase hexadecimal UUID string.
    Example:
    C36A3197FDEE433FB5547EE83DE99E4B
  • Study mode. Allowed values: active (live study operations), test (testing data), training (training or sandbox data).
    Example:
    test
  • Study identifier as a 32-character uppercase hexadecimal UUID string.
    Example:
    C36A3197FDEE433FB5547EE83DE99E4B

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

Successful operation.
Body ()
Root Schema : StatesResponse v1.0
Type: object
Title: StatesResponse v1.0
Response wrapping the state list.
Show Source
Nested Schema : StateDto2 v2.0
Type: object
Title: StateDto2 v2.0
State metadata that includes the hidden flag.
Show Source
  • Title: State Code
    ISO code identifying the state.
    Example: CA
  • Title: Comment
    Additional comment for the state.
    Example: Population threshold 1000000
  • Title: Hidden
    Indicates whether the state is hidden from derived lists.
    Example: true
  • Title: State ID
    Unique state identifier (UUID, 32-character uppercase hexadecimal string).
  • Title: State Name
    Official state name.
    Example: California
  • Title: Reason
    Reason metadata for the state.
    Example: Legacy mapping
  • Title: Version Start
    Timestamp 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.
Body ()
Root Schema : SDFResponse
Type: object
Title: SDFResponse
Wrapper for service responses containing result or error data.
Show Source
Nested Schema : ErrorResponseData
Type: object
Show Source
Nested Schema : result
Type: object
The result object for successful requests. Type depends on the API operation.
Example:
{
    "hasMore":"true",
    "totalResults":5,
    "count":5,
    "data":[
    ]
}
Nested Schema : details
Type: object
Examples

Back to Top