PUT api/Promoter/Update
Request Information
URI Parameters
None.
Body Parameters
PromoterUpdateVM| Name | Description | Type | Additional information |
|---|---|---|---|
| PromoterId | integer |
Required |
|
| 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 |
|
| 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 |
|
| UpdateUser | integer |
Required |
|
| UpdateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"PromoterId": 1,
"PromoterFName": "sample string 2",
"PromoterMName": "sample string 3",
"PromoterLName": "sample string 4",
"PromoterNName": "sample string 5",
"Prefix": {
"PrefixId": 1,
"PrefixName": "sample string 2"
},
"Code": "sample string 6",
"PhoneNumber": "sample string 7",
"MobileNumber": "sample string 8",
"Email": "sample string 9",
"Address": "sample string 10",
"AddressZip": "sample string 11",
"AddressCity": "sample string 12",
"State": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Country": {
"PlaceId": 1,
"PlaceName": "sample string 2"
},
"Parish": {
"EstablishId": 1,
"EstablishName": "sample string 2"
},
"Status": "sample string 13",
"UpdateUser": 14,
"UpdateIp": "sample string 15"
}
application/xml, text/xml
Sample:
<PromoterUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Address>sample string 10</Address>
<AddressCity>sample string 12</AddressCity>
<AddressZip>sample string 11</AddressZip>
<Code>sample string 6</Code>
<Country>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</Country>
<Email>sample string 9</Email>
<MobileNumber>sample string 8</MobileNumber>
<Parish>
<EstablishId>1</EstablishId>
<EstablishName>sample string 2</EstablishName>
</Parish>
<PhoneNumber>sample string 7</PhoneNumber>
<Prefix>
<PrefixId>1</PrefixId>
<PrefixName>sample string 2</PrefixName>
</Prefix>
<PromoterFName>sample string 2</PromoterFName>
<PromoterId>1</PromoterId>
<PromoterLName>sample string 4</PromoterLName>
<PromoterMName>sample string 3</PromoterMName>
<PromoterNName>sample string 5</PromoterNName>
<State>
<PlaceId>1</PlaceId>
<PlaceName>sample string 2</PlaceName>
</State>
<Status>sample string 13</Status>
<UpdateIp>sample string 15</UpdateIp>
<UpdateUser>14</UpdateUser>
</PromoterUpdateVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.