POST country/add
Adds a new Country
Request Information
URI Parameters
None.
Body Parameters
CountryAddRequest object containing the details of the country
CountryAddRequestName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
Abbreviation | string |
None. |
|
RegionId | integer |
None. |
|
CountryManagerUserId | integer |
None. |
|
IsActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "Abbreviation": "sample string 2", "RegionId": 3, "CountryManagerUserId": 1, "IsActive": true }
application/xml, text/xml
Sample:
<CountryAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects.OrganizationObjects"> <IsActive xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects">true</IsActive> <Abbreviation>sample string 2</Abbreviation> <CountryManagerUserId>1</CountryManagerUserId> <Name>sample string 1</Name> <RegionId>3</RegionId> </CountryAddRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CountryAddResponse
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.