Add a region to a country
post
/ec-site-svc/rest/v1/studies/{studyId}/{mode}/regions
Adds a region 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
Root Schema : SDFResponse
Type:
Show Source
object
-
errorData: object
ErrorResponseData_ORS
Title:
ErrorResponseData_ORS
Response object to represent errors. -
result: object
result
-
status: string
Nested Schema : ErrorResponseData_ORS
Type:
object
Title:
ErrorResponseData_ORS
Response object to represent errors.
Show Source
-
details: object
details
Detail of error
-
errorCode: string
Error code in error responseExample:
DESIGN_NOT_FOUND,JSON-004
-
errorMessage: string
Error message in error responseExample:
Design not found, Validation error
Nested Schema : result
Type:
object
Nested Schema : details
Type:
object
Detail of error