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": "24bec656-3b9a-475d-b976-a9dce186d04f",
"Code": "sample string 3",
"Campaign": 1,
"CompanyGuid": "f2353ff8-0cd0-4550-8747-ff0d951dd49c",
"PosNegociated": true,
"PosAgentGuid": "22e3e25a-ef46-4e52-a544-3f9467f516e0",
"BudgetNegociated": true,
"BudgetAgentGuid": "24759b29-7259-411e-bdfc-06cc805ab9df",
"ImplantationAgentGuid": "95152637-a170-41b5-9de6-88f6f1b0c7bf",
"PrecoAgentGuid": "5eaed257-5df0-4b7c-b231-7f1688c57860",
"PrecoTract": true,
"CompanyStatus": {
"Guid": "fb80b553-c6c4-4b82-b388-2998230fcbc6",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CompanyStore": {
"Guid": "7e9e0566-8a33-411d-82f7-9cc36eb97b0f",
"Code": "sample string 2",
"Title": "sample string 3"
},
"CommercialGuid": "9b35e0a7-92a7-425b-aac5-9b9b96a114b9",
"MerchandiserGuid": "3eb9032f-7547-413b-a49f-da484b0e991e",
"MerchandiserType": {
"Guid": "4a6e601e-1dd8-4db1-9222-404b0347ad3b",
"Code": "sample string 2",
"Title": "sample string 3"
},
"TelemarketerGuid": "307d2f5e-2ca9-4a63-b2a8-5e84e6866b3c",
"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>24759b29-7259-411e-bdfc-06cc805ab9df</BudgetAgentGuid>
<BudgetNegociated>true</BudgetNegociated>
<Campaign>1</Campaign>
<Code>sample string 3</Code>
<CommercialGuid>9b35e0a7-92a7-425b-aac5-9b9b96a114b9</CommercialGuid>
<CompanyGuid>f2353ff8-0cd0-4550-8747-ff0d951dd49c</CompanyGuid>
<CompanyStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>fb80b553-c6c4-4b82-b388-2998230fcbc6</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>7e9e0566-8a33-411d-82f7-9cc36eb97b0f</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</CompanyStore>
<Guid>24bec656-3b9a-475d-b976-a9dce186d04f</Guid>
<Id>1</Id>
<ImplantationAgentGuid>95152637-a170-41b5-9de6-88f6f1b0c7bf</ImplantationAgentGuid>
<MerchandiserGuid>3eb9032f-7547-413b-a49f-da484b0e991e</MerchandiserGuid>
<MerchandiserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/RestApi.Models.Outputs">
<d2p1:Code>sample string 2</d2p1:Code>
<d2p1:Guid>4a6e601e-1dd8-4db1-9222-404b0347ad3b</d2p1:Guid>
<d2p1:Title>sample string 3</d2p1:Title>
</MerchandiserType>
<NewCampaign>true</NewCampaign>
<PosAgentGuid>22e3e25a-ef46-4e52-a544-3f9467f516e0</PosAgentGuid>
<PosNegociated>true</PosNegociated>
<PrecoAgentGuid>5eaed257-5df0-4b7c-b231-7f1688c57860</PrecoAgentGuid>
<PrecoTract>true</PrecoTract>
<TelemarketerGuid>307d2f5e-2ca9-4a63-b2a8-5e84e6866b3c</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. |