POST api/ContactAPI/AddUpdateContact
Request Information
URI Parameters
None.
Body Parameters
ObjContact| Name | Description | Type | Additional information |
|---|---|---|---|
| ContactId | integer |
None. |
|
| ContactName | string |
Required |
|
| Mobile | string |
Required |
|
| Landline | string |
None. |
|
| WhatsappNumber | string |
None. |
|
| string |
Required Data type: EmailAddress Matching regular expression pattern: ^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$ |
||
| Country | integer |
Required |
|
| State | integer |
None. |
|
| City | integer |
None. |
|
| DateOfBirth | date |
None. |
|
| Address1 | string |
None. |
|
| Address2 | string |
None. |
|
| Company | integer |
Required |
|
| Designation | integer |
Required |
|
| ContactOwner | integer |
Required |
|
| Nationality | integer |
Required |
|
| Religion | integer |
None. |
|
| Language | integer |
None. |
|
| ProReservation | integer |
None. |
|
| Gender | string |
Required |
|
| IsVVIP | boolean |
None. |
|
| IsFactoryVisit | boolean |
None. |
|
| FactoryVisitComments | string |
None. |
|
| Comments | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ContactId": 1,
"ContactName": "sample string 2",
"Mobile": "sample string 3",
"Landline": "sample string 4",
"WhatsappNumber": "sample string 5",
"Email": "sample string 6",
"Country": 7,
"State": 8,
"City": 9,
"DateOfBirth": "2025-12-06T07:47:46.032815+03:00",
"Address1": "sample string 10",
"Address2": "sample string 11",
"Company": 12,
"Designation": 13,
"ContactOwner": 14,
"Nationality": 15,
"Religion": 16,
"Language": 17,
"ProReservation": 18,
"Gender": "sample string 19",
"IsVVIP": true,
"IsFactoryVisit": true,
"FactoryVisitComments": "sample string 22",
"Comments": "sample string 23"
}
application/xml, text/xml
Sample:
<ObjContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Maven_CRM.Models"> <Address1>sample string 10</Address1> <Address2>sample string 11</Address2> <City>9</City> <Comments>sample string 23</Comments> <Company>12</Company> <ContactId>1</ContactId> <ContactName>sample string 2</ContactName> <ContactOwner>14</ContactOwner> <Country>7</Country> <DateOfBirth>2025-12-06T07:47:46.032815+03:00</DateOfBirth> <Designation>13</Designation> <Email>sample string 6</Email> <FactoryVisitComments>sample string 22</FactoryVisitComments> <Gender>sample string 19</Gender> <IsFactoryVisit>true</IsFactoryVisit> <IsVVIP>true</IsVVIP> <Landline>sample string 4</Landline> <Language>17</Language> <Mobile>sample string 3</Mobile> <Nationality>15</Nationality> <ProReservation>18</ProReservation> <Religion>16</Religion> <State>8</State> <WhatsappNumber>sample string 5</WhatsappNumber> </ObjContact>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ObjectNone.
Response Formats
application/json, text/json
Sample:
Sample not available.