POST api/Promoter/Save

Request Information

URI Parameters

None.

Body Parameters

PromoterSaveVM
NameDescriptionTypeAdditional information
PromoterFName

string

Required

String length: inclusive between 0 and 100

PromoterMName

string

Required

String length: inclusive between 0 and 100

PromoterLName

string

Required

String length: inclusive between 0 and 100

PromoterNName

string

Required

String length: inclusive between 0 and 100

Prefix

PrefixLookupVM

Required

Code

string

Required

String length: inclusive between 0 and 10

PhoneNumber

string

String length: inclusive between 0 and 50

MobileNumber

string

String length: inclusive between 0 and 50

Email

string

String length: inclusive between 0 and 100

Address

string

Required

String length: inclusive between 0 and 200

AddressZip

string

String length: inclusive between 0 and 50

AddressCity

string

String length: inclusive between 0 and 100

State

PlaceLookupVM

None.

Country

PlaceLookupVM

None.

Parish

EstablishmentLookupVM

Required

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:
{
  "PromoterFName": "sample string 1",
  "PromoterMName": "sample string 2",
  "PromoterLName": "sample string 3",
  "PromoterNName": "sample string 4",
  "Prefix": {
    "PrefixId": 1,
    "PrefixName": "sample string 2"
  },
  "Code": "sample string 5",
  "PhoneNumber": "sample string 6",
  "MobileNumber": "sample string 7",
  "Email": "sample string 8",
  "Address": "sample string 9",
  "AddressZip": "sample string 10",
  "AddressCity": "sample string 11",
  "State": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "Country": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "Parish": {
    "EstablishId": 1,
    "EstablishName": "sample string 2"
  },
  "Status": "sample string 12",
  "CreateUser": 13,
  "CreateIp": "sample string 14"
}

application/xml, text/xml

Sample:
<PromoterSaveVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Address>sample string 9</Address>
  <AddressCity>sample string 11</AddressCity>
  <AddressZip>sample string 10</AddressZip>
  <Code>sample string 5</Code>
  <Country>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </Country>
  <CreateIp>sample string 14</CreateIp>
  <CreateUser>13</CreateUser>
  <Email>sample string 8</Email>
  <MobileNumber>sample string 7</MobileNumber>
  <Parish>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
  </Parish>
  <PhoneNumber>sample string 6</PhoneNumber>
  <Prefix>
    <PrefixId>1</PrefixId>
    <PrefixName>sample string 2</PrefixName>
  </Prefix>
  <PromoterFName>sample string 1</PromoterFName>
  <PromoterLName>sample string 3</PromoterLName>
  <PromoterMName>sample string 2</PromoterMName>
  <PromoterNName>sample string 4</PromoterNName>
  <State>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </State>
  <Status>sample string 12</Status>
</PromoterSaveVM>

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.