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
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : regionCountries
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 2147483647
Show Source
Nested Schema : RegionCountryDto
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : regionCountries
Type: array
Minimum Number of Items: 1
Maximum Number of Items: 2147483647
Show Source
Nested Schema : RegionCountryDto
Type: object
Show Source

400 Response

In case a region already exist with same name or a country to be associated is already associated with another region
Body ()
Root Schema : SDFResponse
Type: object
Show Source
Nested Schema : ErrorResponseData_ORS
Type: object
Title: ErrorResponseData_ORS
Response object to represent errors.
Show Source
Nested Schema : result
Type: object
Nested Schema : details
Type: object
Detail of error
Back to Top