POST api/StateProvince/Save

Request Information

URI Parameters

None.

Body Parameters

StateProvince
NameDescriptionTypeAdditional information
PostState

boolean

None.

EntryDate

date

None.

ModifyDate

date

None.

PostDate

date

None.

CompanyId

integer

None.

CountryId

integer

None.

EntryUser

integer

None.

Id

integer

None.

ModifyUser

integer

None.

OrganizationId

integer

None.

PostUser

integer

None.

Code

string

None.

Description

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PostState": true,
  "EntryDate": "2025-10-29T13:05:05.3957553+05:00",
  "ModifyDate": "2025-10-29T13:05:05.3957553+05:00",
  "PostDate": "2025-10-29T13:05:05.3957553+05:00",
  "CompanyId": 4,
  "CountryId": 5,
  "EntryUser": 6,
  "Id": 7,
  "ModifyUser": 8,
  "OrganizationId": 9,
  "PostUser": 10,
  "Code": "sample string 11",
  "Description": "sample string 12"
}

application/xml, text/xml

Sample:
<StateProvince xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Architecture.Model">
  <Code>sample string 11</Code>
  <CompanyId>4</CompanyId>
  <CountryId>5</CountryId>
  <Description>sample string 12</Description>
  <EntryDate>2025-10-29T13:05:05.3957553+05:00</EntryDate>
  <EntryUser>6</EntryUser>
  <Id>7</Id>
  <ModifyDate>2025-10-29T13:05:05.3957553+05:00</ModifyDate>
  <ModifyUser>8</ModifyUser>
  <OrganizationId>9</OrganizationId>
  <PostDate>2025-10-29T13:05:05.3957553+05:00</PostDate>
  <PostState>true</PostState>
  <PostUser>10</PostUser>
</StateProvince>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'StateProvince'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.