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). Rights required: RegionPost.

Request

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