Edara API v3

Edara API v3: Countries

Read the guide first: authentication, paging, errors, rate limits and the shared PagedResult, BatchResult and *Reference shapes.

Endpoints

GET /v3/countries: Lists countries.

Operation GetCountries · permission read:country

Query string: GetCountriesQuery

field type default validation description
offset int? 0 >= 0 Number of items to skip before returning results. Defaults to 0.
limit int? 100 1..1000 (out of range → 400) Maximum number of items to return. Defaults to 100, maximum 1000.
name string Optional exact country name filter.

Responses: OK PagedResult<CountryResponse>: Paged list of countries.

Notes


GET /v3/countries/{id}: Gets a country by id.

Operation GetCountryById · permission read:country

Parameters

name in type default description
id route int The country id.

Responses: OK CountryResponse: The country.

Notes


POST /v3/countries: Creates a country.

Operation CreateCountry · permission create:country

Body: CountryUpsertRequest

field type default validation description
name string NotEmpty() .NotNull() .MaximumLength(100) The country name.

Responses: Created CountryResponse: The created country.

Business errors (HTTP 409, match on errorCode):

Notes


PUT /v3/countries/{id}: Updates a country.

Operation UpdateCountry · permission update:country

Parameters

name in type default description
id route int The country id.

Body: CountryUpsertRequest

field type default validation description
name string NotEmpty() .NotNull() .MaximumLength(100) The country name.

Responses: OK CountryResponse: The updated country.

Business errors (HTTP 409, match on errorCode):

Notes


DELETE /v3/countries/{id}: Deletes a country.

Operation DeleteCountry · permission delete:country

Parameters

name in type default description
id route int The country id.

Responses: NoContent: (not declared; read from the method body)

Business errors (HTTP 409, match on errorCode):

Notes

Types

CountryResponse

Response describing a country.

field type description
id int The country identifier.
name string The country name.