Add a region
post
/ec-site-svc/rest/v2/studies/{studyId}/{mode}/regions
Creates a region with list of countries and states associations (minimum 1).
Right: RegionPost.
Right: RegionPost.
Request
Path Parameters
-
mode(required): string
Mode of the study. Accepts active, test, or training.
-
studyId(required): string(uuid)
The ID of the study.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
comment: string
Minimum Length:
0Maximum Length:2048 -
id: string
(uuid)
-
name(required): string
Minimum Length:
1Maximum Length:100 -
reason: string
Minimum Length:
0Maximum Length:255 -
regionCountriesStates(required): array
regionCountriesStates
Minimum Number of Items:
1Maximum Number of Items:2147483647 -
versionStart: string
(date-time)
Nested Schema : regionCountriesStates
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
Show Source
2147483647Nested Schema : RegionCountryStatesDto
Type:
Show Source
object-
comment: string
Minimum Length:
0Maximum Length:2048 -
countryId(required): string
(uuid)
-
countryName: string
-
id: string
(uuid)
-
reason: string
Minimum Length:
0Maximum Length:255 -
stateId(required): string
(uuid)
-
stateName: string
-
versionStart: string
(date-time)
Response
Supported Media Types
- application/json
200 Response
Successful operation
Root Schema : schema
Type:
Show Source
object-
comment: string
Minimum Length:
0Maximum Length:2048 -
id: string
(uuid)
-
name(required): string
Minimum Length:
1Maximum Length:100 -
reason: string
Minimum Length:
0Maximum Length:255 -
regionCountries(required): array
regionCountries
Minimum Number of Items:
1Maximum Number of Items:2147483647 -
versionStart: string
(date-time)
Nested Schema : regionCountries
Type:
arrayMinimum Number of Items:
1Maximum Number of Items:
Show Source
2147483647Nested Schema : RegionCountryDto
Type:
Show Source
object-
comment: string
Minimum Length:
0Maximum Length:2048 -
countryId(required): string
(uuid)
-
countryName: string
-
id: string
(uuid)
-
reason: string
Minimum Length:
0Maximum Length:255 -
versionStart: string
(date-time)
400 Response
In case a region already exist with same name or a country to be associated is already associated with another region
Nested Schema : result
Type:
objectNested Schema : details
Type:
object