POST api/AddressBook/Save

Request Information

URI Parameters

None.

Body Parameters

AddressBookSave
NameDescriptionTypeAdditional information
AddressBookDesc

string

Required

String length: inclusive between 0 and 300

BookId

integer

Required

Code

string

String length: inclusive between 0 and 10

AddressBookType

AddressBookTypeLookup

Required

Address1

string

String length: inclusive between 0 and 200

Address2

string

String length: inclusive between 0 and 200

HouseName

string

String length: inclusive between 0 and 100

Pincode

string

String length: inclusive between 0 and 50

Place

string

None.

LandMark

string

String length: inclusive between 0 and 200

PO

PlaceLookup

None.

District

PlaceLookup

None.

State

PlaceLookup

None.

Country

PlaceLookup

None.

PhoneNo

string

String length: inclusive between 0 and 50

MobileNo

string

String length: inclusive between 0 and 50

Status

string

Required

Matching regular expression pattern: A|I

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "AddressBookDesc": "sample string 1",
  "BookId": 2,
  "Code": "sample string 3",
  "AddressBookType": {
    "AddressBookTypeId": 1,
    "AddressBookTypeDesc": "sample string 2"
  },
  "Address1": "sample string 4",
  "Address2": "sample string 5",
  "HouseName": "sample string 6",
  "Pincode": "sample string 7",
  "Place": "sample string 8",
  "LandMark": "sample string 9",
  "PO": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "District": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "State": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "Country": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PhoneNo": "sample string 10",
  "MobileNo": "sample string 11",
  "Status": "sample string 12",
  "CreateUser": 13,
  "CreateIp": "sample string 14"
}

application/xml, text/xml

Sample:
<AddressBookSave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Address1>sample string 4</Address1>
  <Address2>sample string 5</Address2>
  <AddressBookDesc>sample string 1</AddressBookDesc>
  <AddressBookType>
    <AddressBookTypeDesc>sample string 2</AddressBookTypeDesc>
    <AddressBookTypeId>1</AddressBookTypeId>
  </AddressBookType>
  <BookId>2</BookId>
  <Code>sample string 3</Code>
  <Country>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </Country>
  <CreateIp>sample string 14</CreateIp>
  <CreateUser>13</CreateUser>
  <District>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </District>
  <HouseName>sample string 6</HouseName>
  <LandMark>sample string 9</LandMark>
  <MobileNo>sample string 11</MobileNo>
  <PO>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PO>
  <PhoneNo>sample string 10</PhoneNo>
  <Pincode>sample string 7</Pincode>
  <Place>sample string 8</Place>
  <State>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </State>
  <Status>sample string 12</Status>
</AddressBookSave>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.