v2.0
post
/ec-site-svc/rest/v2/studies/{studyId}/{mode}/country/{sdfId}
Compared with v1 create, this version creates both country and state associations for an SDF.
Request
Path Parameters
-
mode(required): string
Study mode. Allowed values: active (live study operations), test (testing data), training (training or sandbox data).Example:
test -
sdfId(required): string
SDF identifier as a 32-character uppercase hexadecimal UUID string.Example:
C36A3197FDEE433FB5547EE83DE99E4B -
studyId(required): string(uuid)
Study identifier as a 32-character uppercase hexadecimal UUID string.Example:
C36A3197FDEE433FB5547EE83DE99E4B
Supported Media Types
- application/json
Root Schema : SDFCountriesAndStatesRequest v1.0
Type:
objectTitle:
SDFCountriesAndStatesRequest v1.0Payload containing SDF associations that include states.
Show Source
Nested Schema : sdfCountriesAndStatesList
Type:
Show Source
array-
Array of:
object SDFCountryAndStateDto v1.0
Title:
SDFCountryAndStateDto v1.0SDF-country association extended with an optional state.
Example:
[
{
"countryId":"B1B8327AFAA6412287106192AB5984EF",
"stateId":"B1B8327AFAA6412287106192AB5984EF",
"sdfId":"B1B8327AFAA6412287106192AB5984EF"
}
]Nested Schema : sdfCountriesAnStatesList
Type:
Show Source
array-
Array of:
object SDFCountryAndStateDto v1.0
Title:
SDFCountryAndStateDto v1.0SDF-country association extended with an optional state.
Example:
[
{
"countryId":"B1B8327AFAA6412287106192AB5984EF",
"stateId":"B1B8327AFAA6412287106192AB5984EF",
"sdfId":"B1B8327AFAA6412287106192AB5984EF"
}
]Nested Schema : SDFCountryAndStateDto v1.0
Type:
objectTitle:
SDFCountryAndStateDto v1.0SDF-country association extended with an optional state.
Show Source
-
comment: string
Title:
CommentMinimum Length:0Maximum Length:2048Additional comment captured for the audited update.Example:Association adjusted after data reconciliation. -
countryId(required): string
(uuid)
Title:
Country IDUnique identifier of the country linked to the SDF (UUID, 32-character uppercase hexadecimal string). -
id: string
(uuid)
Title:
SDF Country IDUnique identifier for the SDF-country association (UUID, 32-character uppercase hexadecimal string). -
primarySupply(required): string
Title:
Primary SupplyMinimum Length:0Maximum Length:10Primary supply type for the SDF-country association.Example:PRIMARY -
reason: string
Title:
ReasonMinimum Length:0Maximum Length:255Reason provided for the audited update.Example:Protocol update requested by study operations. -
sdfId(required): string
(uuid)
Title:
SDF IDUnique SDF identifier (UUID, 32-character uppercase hexadecimal string). -
stateId: string
(uuid)
Title:
State IDOptional state identifier linked to the SDF association. -
versionStart: string
(date-time)
Title:
Version StartTimestamp when this association version was created.Example:2025-03-16T12:00:00Z
Example:
[
{
"countryId":"B1B8327AFAA6412287106192AB5984EF",
"stateId":"B1B8327AFAA6412287106192AB5984EF",
"sdfId":"B1B8327AFAA6412287106192AB5984EF"
}
]Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Successful operation.
Root Schema : SDFCountriesAndStatesResponse v1.0
Type:
objectTitle:
SDFCountriesAndStatesResponse v1.0Response containing SDF country/state associations.
Show Source
-
countries: object
CountryDto v1.0
Title:
CountryDto v1.0Country details returned by the SDF APIs. -
sdfCountriesAndStatesList: object
SDFCountryAndStateDto v1.0
Title:
SDFCountryAndStateDto v1.0SDF-country association extended with an optional state.
Nested Schema : CountryDto v1.0
Type:
objectTitle:
CountryDto v1.0Country details returned by the SDF APIs.
Show Source
-
comment: string
Title:
CommentMinimum Length:0Maximum Length:2048Additional comment captured for the audited update.Example:Association adjusted after data reconciliation. -
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 -
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. -
versionStart: string
(date-time)
Title:
Version StartTimestamp when this country version was created.Example:2025-03-16T12:00:00Z
Example:
[
{
"id":"A0E1B2C3D4E5F67890123456789ABCDE",
"versionStart":"2025-03-16T12:00:00.000Z",
"isoCode":"US",
"name":"United States"
}
]Nested Schema : SDFCountryAndStateDto v1.0
Type:
objectTitle:
SDFCountryAndStateDto v1.0SDF-country association extended with an optional state.
Show Source
-
comment: string
Title:
CommentMinimum Length:0Maximum Length:2048Additional comment captured for the audited update.Example:Association adjusted after data reconciliation. -
countryId(required): string
(uuid)
Title:
Country IDUnique identifier of the country linked to the SDF (UUID, 32-character uppercase hexadecimal string). -
id: string
(uuid)
Title:
SDF Country IDUnique identifier for the SDF-country association (UUID, 32-character uppercase hexadecimal string). -
primarySupply(required): string
Title:
Primary SupplyMinimum Length:0Maximum Length:10Primary supply type for the SDF-country association.Example:PRIMARY -
reason: string
Title:
ReasonMinimum Length:0Maximum Length:255Reason provided for the audited update.Example:Protocol update requested by study operations. -
sdfId(required): string
(uuid)
Title:
SDF IDUnique SDF identifier (UUID, 32-character uppercase hexadecimal string). -
stateId: string
(uuid)
Title:
State IDOptional state identifier linked to the SDF association. -
versionStart: string
(date-time)
Title:
Version StartTimestamp when this association version was created.Example:2025-03-16T12:00:00Z
Example:
[
{
"id":"3F2504E04F8911D39A0C0305E82C3301",
"versionStart":"2025-03-16T12:00:00.000Z",
"countryId":"A0E1B2C3D4E5F67890123456789ABCDE",
"stateId":"9F2504E04F8911D39A0C0305E82C3301",
"sdfId":"9C10C9F402C44BD6A7CFC7F4F1A6EED8",
"primarySupply":"PRIMARY"
}
]Examples
400 Response
Returned when one or more path/query parameters are invalid or the request body fails 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