POST api/SaveAddress

Request Information

URI Parameters

None.

Body Parameters

Address
NameDescriptionTypeAdditional information
Building

string

None.

Street

string

None.

City

string

None.

Region

string

None.

PostCode

string

None.

Country

string

None.

FullAddress

string

None.

CustormerId

integer

None.

Created

date

None.

CreatedBy

integer

None.

CreatedComboId

string

None.

Guid

globally unique identifier

None.

Id

integer

None.

IsDirty

boolean

None.

Modified

date

None.

ModifiedBy

integer

None.

ModifiedComboId

string

None.

TenantId

integer

None.

Deleted

boolean

None.

Action

EntityAction

None.

Message

string

None.

Error

ServiceError

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "Address",
  "Building": "sample string 1",
  "Street": "sample string 2",
  "City": "sample string 3",
  "Region": "sample string 4",
  "PostCode": "sample string 5",
  "Country": "sample string 6",
  "FullAddress": "sample string 7",
  "CustormerId": 9,
  "Created": "2020-11-25T10:50:10.5352947+00:00",
  "CreatedBy": 11,
  "CreatedComboId": "sample string 12",
  "Guid": "22a1ff5b-f4ab-4a65-8c40-573c76668f8f",
  "Id": 14,
  "IsDirty": true,
  "Loaded": true,
  "Modified": "2020-11-25T10:50:10.5352947+00:00",
  "ModifiedBy": 18,
  "ModifiedComboId": "sample string 19",
  "TenantId": 20,
  "Deleted": true,
  "Action": 0,
  "Message": "sample string 22",
  "Error": {
    "$id": "2",
    "Message": "sample string 1",
    "ECode": 2,
    "Source": "sample string 3",
    "DateTime": "2020-11-25T10:50:10.5352947+00:00",
    "Operator": 5,
    "TenantId": 6
  }
}

application/xml, text/xml

Sample:
<Address xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://IMBK/query/2.0">
  <Action>None</Action>
  <Created>2020-11-25T10:50:10.5352947+00:00</Created>
  <CreatedBy>11</CreatedBy>
  <CreatedComboId>sample string 12</CreatedComboId>
  <Deleted>true</Deleted>
  <Error z:Id="i2">
    <DateTime>2020-11-25T10:50:10.5352947+00:00</DateTime>
    <ECode>2</ECode>
    <Message>sample string 1</Message>
    <Operator>5</Operator>
    <Source>sample string 3</Source>
    <TenantId>6</TenantId>
  </Error>
  <Guid>22a1ff5b-f4ab-4a65-8c40-573c76668f8f</Guid>
  <Id>14</Id>
  <IsDirty>true</IsDirty>
  <Message>sample string 22</Message>
  <Modified>2020-11-25T10:50:10.5352947+00:00</Modified>
  <ModifiedBy>18</ModifiedBy>
  <ModifiedComboId>sample string 19</ModifiedComboId>
  <Name>Address</Name>
  <TenantId>20</TenantId>
  <Building>sample string 1</Building>
  <City>sample string 3</City>
  <Country>sample string 6</Country>
  <CustormerId>9</CustormerId>
  <FullAddress>sample string 7</FullAddress>
  <PostCode>sample string 5</PostCode>
  <Region>sample string 4</Region>
  <Street>sample string 2</Street>
</Address>

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

Response Information

Resource Description

Collection of Address
NameDescriptionTypeAdditional information
Building

string

None.

Street

string

None.

City

string

None.

Region

string

None.

PostCode

string

None.

Country

string

None.

FullAddress

string

None.

CustormerId

integer

None.

Created

date

None.

CreatedBy

integer

None.

CreatedComboId

string

None.

Guid

globally unique identifier

None.

Id

integer

None.

IsDirty

boolean

None.

Modified

date

None.

ModifiedBy

integer

None.

ModifiedComboId

string

None.

TenantId

integer

None.

Deleted

boolean

None.

Action

EntityAction

None.

Message

string

None.

Error

ServiceError

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "Name": "Address",
    "Building": "sample string 1",
    "Street": "sample string 2",
    "City": "sample string 3",
    "Region": "sample string 4",
    "PostCode": "sample string 5",
    "Country": "sample string 6",
    "FullAddress": "sample string 7",
    "CustormerId": 9,
    "Created": "2020-11-25T10:50:10.5362957+00:00",
    "CreatedBy": 11,
    "CreatedComboId": "sample string 12",
    "Guid": "3f94cd4d-777c-40a8-8c7c-20b27995ca0b",
    "Id": 14,
    "IsDirty": true,
    "Loaded": true,
    "Modified": "2020-11-25T10:50:10.5362957+00:00",
    "ModifiedBy": 18,
    "ModifiedComboId": "sample string 19",
    "TenantId": 20,
    "Deleted": true,
    "Action": 0,
    "Message": "sample string 22",
    "Error": {
      "$id": "2",
      "Message": "sample string 1",
      "ECode": 2,
      "Source": "sample string 3",
      "DateTime": "2020-11-25T10:50:10.5362957+00:00",
      "Operator": 5,
      "TenantId": 6
    }
  },
  {
    "$ref": "1"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAddress xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://IMBK/query/2.0">
  <Address z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
    <Action>None</Action>
    <Created>2020-11-25T10:50:10.5362957+00:00</Created>
    <CreatedBy>11</CreatedBy>
    <CreatedComboId>sample string 12</CreatedComboId>
    <Deleted>true</Deleted>
    <Error z:Id="i2">
      <DateTime>2020-11-25T10:50:10.5362957+00:00</DateTime>
      <ECode>2</ECode>
      <Message>sample string 1</Message>
      <Operator>5</Operator>
      <Source>sample string 3</Source>
      <TenantId>6</TenantId>
    </Error>
    <Guid>3f94cd4d-777c-40a8-8c7c-20b27995ca0b</Guid>
    <Id>14</Id>
    <IsDirty>true</IsDirty>
    <Message>sample string 22</Message>
    <Modified>2020-11-25T10:50:10.5362957+00:00</Modified>
    <ModifiedBy>18</ModifiedBy>
    <ModifiedComboId>sample string 19</ModifiedComboId>
    <Name>Address</Name>
    <TenantId>20</TenantId>
    <Building>sample string 1</Building>
    <City>sample string 3</City>
    <Country>sample string 6</Country>
    <CustormerId>9</CustormerId>
    <FullAddress>sample string 7</FullAddress>
    <PostCode>sample string 5</PostCode>
    <Region>sample string 4</Region>
    <Street>sample string 2</Street>
  </Address>
  <Address z:Ref="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />
</ArrayOfAddress>