POST api/Country/Save

Request Information

URI Parameters

None.

Body Parameters

Country
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

None.

Description

string

None.

EntryDate

date

None.

EntryUser

integer

None.

ModifyDate

date

None.

ModifyUser

integer

None.

PostDate

date

None.

PostUser

integer

None.

PostState

boolean

None.

OrganizationId

integer

None.

CompanyId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "Description": "sample string 3",
  "EntryDate": "2025-10-29T13:10:59.0052309+05:00",
  "EntryUser": 5,
  "ModifyDate": "2025-10-29T13:10:59.0052309+05:00",
  "ModifyUser": 7,
  "PostDate": "2025-10-29T13:10:59.0052309+05:00",
  "PostUser": 9,
  "PostState": true,
  "OrganizationId": 11,
  "CompanyId": 12
}

application/xml, text/xml

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

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 'Country'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.