PUT company/PutCompanyDetails
Update Company information
Request Information
URI Parameters
None.
Body Parameters
CompanyDetailsInput| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Guid | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Campaign | integer |
None. |
|
| CompanyGuid | globally unique identifier |
None. |
|
| PosNegociated | boolean |
None. |
|
| PosAgentGuid | globally unique identifier |
None. |
|
| BudgetNegociated | boolean |
None. |
|
| BudgetAgentGuid | globally unique identifier |
None. |
|
| ImplantationAgentGuid | globally unique identifier |
None. |
|
| PrecoAgentGuid | globally unique identifier |
None. |
|
| PrecoTract | boolean |
None. |
|
| CompanyStatus | CompanyStatusOutput |
None. |
|
| CompanyStore | CompanyStoreOutput |
None. |
|
| CommercialGuid | globally unique identifier |
None. |
|
| MerchandiserGuid | globally unique identifier |
None. |
|
| MerchandiserType | MerchandiserTypeOutput |
None. |
|
| TelemarketerGuid | globally unique identifier |
None. |
|
| NewCampaign | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Guid": "6576a120-8e44-4bc5-972d-90557a5d17b6",
"Code": "sample string 3",
"Campaign": 1,
"CompanyGuid": "752c152c-e142-46ae-9455-9c1bfeb30f22",
"PosNegociated": true,
"PosAgentGuid": "a268925b-711c-47df-bffc-ccd96cdb4e03",
"BudgetNegociated": true,
"BudgetAgentGuid": "39adf7fb-4c36-4cd5-b375-fe53c2e22f9b",
"ImplantationAgentGuid": "8b5ef45a-8740-419b-bda0-25b4b588dc33",
"PrecoAgentGuid": "0402a608-377d-45b5-8154-e59f0eb49ba5",
"PrecoTract": true,
"CompanyStatus": {
"Guid": "2c12f15f-1db5-4a57-9341-966e8b3fcb2b",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CompanyStore": {
"Guid": "07dc3dc8-7aca-4b28-90fb-579f9f549855",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CommercialGuid": "5baa3bac-b6fd-4890-8f65-85f9ea45e65a",
"MerchandiserGuid": "4cd33c6e-3b4e-4dee-a208-349068df06e1",
"MerchandiserType": {
"Guid": "3fb6cde8-6a73-4bf6-b27a-27d7b8f85404",
"Code": "sample string 2",
"Title": "sample string 3"
},
"TelemarketerGuid": "65b524a9-6a38-45cb-9c40-74ab6ef73243",
"NewCampaign": true
}
application/xml, text/xml
Sample:
<CompanyDetailsInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestApi.Models.Inputs">
<BudgetAgentGuid>39adf7fb-4c36-4cd5-b375-fe53c2e22f9b</BudgetAgentGuid>
<BudgetNegociated>true</BudgetNegociated>
<Campaign>1</Campaign>
<Code>sample string 3</Code>
<CommercialGuid>5baa3bac-b6fd-4890-8f65-85f9ea45e65a</CommercialGuid>
<CompanyGuid>752c152c-e142-46ae-9455-9c1bfeb30f22</CompanyGuid>
<CompanyStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>2c12f15f-1db5-4a57-9341-966e8b3fcb2b</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStatus>
<CompanyStore xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>07dc3dc8-7aca-4b28-90fb-579f9f549855</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStore>
<Guid>6576a120-8e44-4bc5-972d-90557a5d17b6</Guid>
<Id>1</Id>
<ImplantationAgentGuid>8b5ef45a-8740-419b-bda0-25b4b588dc33</ImplantationAgentGuid>
<MerchandiserGuid>4cd33c6e-3b4e-4dee-a208-349068df06e1</MerchandiserGuid>
<MerchandiserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>3fb6cde8-6a73-4bf6-b27a-27d7b8f85404</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</MerchandiserType>
<NewCampaign>true</NewCampaign>
<PosAgentGuid>a268925b-711c-47df-bffc-ccd96cdb4e03</PosAgentGuid>
<PosNegociated>true</PosNegociated>
<PrecoAgentGuid>0402a608-377d-45b5-8154-e59f0eb49ba5</PrecoAgentGuid>
<PrecoTract>true</PrecoTract>
<TelemarketerGuid>65b524a9-6a38-45cb-9c40-74ab6ef73243</TelemarketerGuid>
</CompanyDetailsInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Person informations after update
HttpResponseMessage| Name | 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. |