POST api/SeaPorts/Save

Request Information

URI Parameters

None.

Body Parameters

SeaPorts
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.

PortName

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

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

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>