POST api/CompanyInfo
Updates or creates company_contact or provate person. If you will send request without ID parameter or OUTER ID parameter, service will create and return new company. If you will send request without ID and with OUTER ID, it will try to search company with defined outer_id. Create and return new if there is not such company. If you did successful update service will return updated record. NOTICE! Better send company via urlencoded form to avoid data loss. api/company HTTP/1.1 Host: api.asminsolution.org Authorization: company:key Content-Type: application/x-www-form-urlencoded id=81890&name=sample name&desc=Description
Request Information
URI Parameters
None.
Body Parameters
ApiCompanyContactInfoName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
id_contact | integer |
None. |
|
type | integer |
None. |
|
additional_type | integer |
None. |
|
data_string | string |
None. |
|
data_numeric | string |
None. |
|
is_subscribed | boolean |
None. |
|
id_company | integer |
None. |
Request Formats
application/json, text/json
{ "id": 1, "id_contact": 1, "type": 2, "additional_type": 3, "data_string": "sample string 4", "data_numeric": "sample string 5", "is_subscribed": true, "id_company": 1 }
application/xml, text/xml
<ApiCompanyContactInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <id>1</id> <id_contact>1</id_contact> <type>2</type> <additional_type>3</additional_type> <data_string>sample string 4</data_string> <data_numeric>sample string 5</data_numeric> <is_subscribed>true</is_subscribed> <id_company>1</id_company> </ApiCompanyContactInfo>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |