[Deprecated]: Add a region
post
/ec-site-svc/rest/v1/studies/{studyId}/{mode}/regions
Deprecated: Creates a region associated to a country. Region data should include a list of associated countries (minimum one country). 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:
0
Maximum Length:2048
-
id: string
(uuid)
-
name(required): string
Minimum Length:
1
Maximum Length:100
-
reason: string
Minimum Length:
0
Maximum Length:255
-
regionCountries(required): array
regionCountries
Minimum Number of Items:
1
Maximum Number of Items:2147483647
-
versionStart: string
(date-time)
Nested Schema : regionCountries
Type:
array
Minimum Number of Items:
1
Maximum Number of Items:
Show Source
2147483647
Nested Schema : RegionCountryDto
Type:
Show Source
object
-
comment: string
Minimum Length:
0
Maximum Length:2048
-
countryId(required): string
(uuid)
-
countryName: string
-
id: string
(uuid)
-
reason: string
Minimum Length:
0
Maximum Length:255
-
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:
0
Maximum Length:2048
-
id: string
(uuid)
-
name(required): string
Minimum Length:
1
Maximum Length:100
-
reason: string
Minimum Length:
0
Maximum Length:255
-
regionCountries(required): array
regionCountries
Minimum Number of Items:
1
Maximum Number of Items:2147483647
-
versionStart: string
(date-time)
Nested Schema : regionCountries
Type:
array
Minimum Number of Items:
1
Maximum Number of Items:
Show Source
2147483647
Nested Schema : RegionCountryDto
Type:
Show Source
object
-
comment: string
Minimum Length:
0
Maximum Length:2048
-
countryId(required): string
(uuid)
-
countryName: string
-
id: string
(uuid)
-
reason: string
Minimum Length:
0
Maximum 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:
object
Nested Schema : details
Type:
object