POST api/CompanyAPI/AddUpdateCompany
Request Information
URI Parameters
None.
Body Parameters
ObjCompany| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyId | integer |
None. |
|
| CompanyName | string |
Required |
|
| ParentCompany | integer |
None. |
|
| CompanyTypeId | string |
Required |
|
| CompanyProfileId | integer |
Required |
|
| BusinessStreamId | string |
Required |
|
| AccountManager | integer |
Required |
|
| CategoryId | integer |
Required |
|
| PaymentHistoryId | integer |
None. |
|
| FinancialStatusId | integer |
None. |
|
| SupplierDeliveryHistoryId | integer |
None. |
|
| KeyAccounts | boolean |
None. |
|
| ClientTime | string |
None. |
|
| CountryId | integer |
Required |
|
| StateId | integer |
None. |
|
| CityId | integer |
None. |
|
| MapLocation | string |
None. |
|
| Landline | string |
None. |
|
| Mobile | string |
None. |
|
| Fax | string |
None. |
|
| string |
Required Data type: EmailAddress Matching regular expression pattern: ^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$ |
||
| Website | string |
None. |
|
| AddressLine1 | string |
None. |
|
| AddressLine2 | string |
None. |
|
| AddressLine3 | string |
None. |
|
| PostalCode | string |
None. |
|
| Remarks | string |
None. |
|
| CreatedBy | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CompanyId": 1,
"CompanyName": "sample string 2",
"ParentCompany": 3,
"CompanyTypeId": "sample string 4",
"CompanyProfileId": 5,
"BusinessStreamId": "sample string 6",
"AccountManager": 7,
"CategoryId": 8,
"PaymentHistoryId": 1,
"FinancialStatusId": 1,
"SupplierDeliveryHistoryId": 9,
"KeyAccounts": true,
"ClientTime": "sample string 10",
"CountryId": 11,
"StateId": 12,
"CityId": 13,
"MapLocation": "sample string 14",
"Landline": "sample string 15",
"Mobile": "sample string 16",
"Fax": "sample string 17",
"Email": "sample string 18",
"Website": "sample string 19",
"AddressLine1": "sample string 20",
"AddressLine2": "sample string 21",
"AddressLine3": "sample string 22",
"PostalCode": "sample string 23",
"Remarks": "sample string 24",
"CreatedBy": 25
}
application/xml, text/xml
Sample:
<ObjCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Maven_CRM.Models"> <AccountManager>7</AccountManager> <AddressLine1>sample string 20</AddressLine1> <AddressLine2>sample string 21</AddressLine2> <AddressLine3>sample string 22</AddressLine3> <BusinessStreamId>sample string 6</BusinessStreamId> <CategoryId>8</CategoryId> <CityId>13</CityId> <ClientTime>sample string 10</ClientTime> <CompanyId>1</CompanyId> <CompanyName>sample string 2</CompanyName> <CompanyProfileId>5</CompanyProfileId> <CompanyTypeId>sample string 4</CompanyTypeId> <CountryId>11</CountryId> <CreatedBy>25</CreatedBy> <Email>sample string 18</Email> <Fax>sample string 17</Fax> <FinancialStatusId>1</FinancialStatusId> <KeyAccounts>true</KeyAccounts> <Landline>sample string 15</Landline> <MapLocation>sample string 14</MapLocation> <Mobile>sample string 16</Mobile> <ParentCompany>3</ParentCompany> <PaymentHistoryId>1</PaymentHistoryId> <PostalCode>sample string 23</PostalCode> <Remarks>sample string 24</Remarks> <StateId>12</StateId> <SupplierDeliveryHistoryId>9</SupplierDeliveryHistoryId> <Website>sample string 19</Website> </ObjCompany>
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.