POST api/utlStateProvinceCode
Insert a new record into the StateProvinceCodes table.
Request Information
URI Parameters
None.
Body Parameters
utlStateProvinceCodeDb| Name | Description | Type | Additional information |
|---|---|---|---|
| StateProvinceID | integer |
None. |
|
| StateProvinceCode | string |
Required Max length: 2 |
|
| StateProvinceName | string |
Required Max length: 50 |
|
| CountryCodeA3 | string |
Required Max length: 3 |
|
| IsActive | boolean |
None. |
|
| CreatedBy | integer |
None. |
|
| CreatedDate | date |
None. |
|
| UpdatedBy | integer |
None. |
|
| UpdatedDate | date |
None. |
|
| results | Collection of ValidationResult |
None. |
Request Formats
application/json, text/json
Sample:
{
"results": null,
"StateProvinceID": 1,
"StateProvinceCode": "sample string 2",
"StateProvinceName": "sample string 3",
"CountryCodeA3": "sample string 4",
"IsActive": true,
"CreatedBy": 6,
"CreatedDate": "2025-12-06T23:37:00.7195156+00:00",
"UpdatedBy": 8,
"UpdatedDate": "2025-12-06T23:37:00.7195156+00:00"
}
application/xml, text/xml
Sample:
<utlStateProvinceCodeDb xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
<results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility" />
<CountryCodeA3>sample string 4</CountryCodeA3>
<CreatedBy>6</CreatedBy>
<CreatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2025-12-06T23:37:00.7195156Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</CreatedDate>
<IsActive>true</IsActive>
<StateProvinceCode>sample string 2</StateProvinceCode>
<StateProvinceID>1</StateProvinceID>
<StateProvinceName>sample string 3</StateProvinceName>
<UpdatedBy>8</UpdatedBy>
<UpdatedDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:DateTime>2025-12-06T23:37:00.7195156Z</d2p1:DateTime>
<d2p1:OffsetMinutes>0</d2p1:OffsetMinutes>
</UpdatedDate>
</utlStateProvinceCodeDb>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
UpsertRetOfutlStateProvinceCodeDb| Name | Description | Type | Additional information |
|---|---|---|---|
| returnID | integer |
None. |
|
| results | Collection of ValidationResult |
None. |
|
| returnItem | utlStateProvinceCodeDb |
None. |
|
| displayMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"returnID": 1,
"results": null,
"returnItem": {
"results": null,
"StateProvinceID": 1,
"StateProvinceCode": "sample string 2",
"StateProvinceName": "sample string 3",
"CountryCodeA3": "sample string 4",
"IsActive": true,
"CreatedBy": 6,
"CreatedDate": "2025-12-06T23:37:00.7195156+00:00",
"UpdatedBy": 8,
"UpdatedDate": "2025-12-06T23:37:00.7267357+00:00"
},
"displayMessage": "sample string 1"
}
application/xml, text/xml
Sample:
<UpsertRetOfutlStateProvinceCodeDb66KPc_SrH xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Data.Utility">
<displayMessage>sample string 1</displayMessage>
<results xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
<returnID>1</returnID>
<returnItem xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Data.Tables">
<results xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.ComponentModel.DataAnnotations" i:nil="true" />
<d2p1:CountryCodeA3>sample string 4</d2p1:CountryCodeA3>
<d2p1:CreatedBy>6</d2p1:CreatedBy>
<d2p1:CreatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2025-12-06T23:37:00.7195156Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</d2p1:CreatedDate>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:StateProvinceCode>sample string 2</d2p1:StateProvinceCode>
<d2p1:StateProvinceID>1</d2p1:StateProvinceID>
<d2p1:StateProvinceName>sample string 3</d2p1:StateProvinceName>
<d2p1:UpdatedBy>8</d2p1:UpdatedBy>
<d2p1:UpdatedDate xmlns:d3p1="http://schemas.datacontract.org/2004/07/System">
<d3p1:DateTime>2025-12-06T23:37:00.7267357Z</d3p1:DateTime>
<d3p1:OffsetMinutes>0</d3p1:OffsetMinutes>
</d2p1:UpdatedDate>
</returnItem>
</UpsertRetOfutlStateProvinceCodeDb66KPc_SrH>