POST api/endereco/associarcanal

Associa o Id do endereço de um determinado canal com a nuvem.

Request Information

URI Parameters

None.

Body Parameters

AssociarEnderecoCanalBindingModel
NameDescriptionTypeAdditional information
EntityCanais

Collection of AssociarEnderecoCanal

None.

Request Formats

application/json, text/json

Sample:
{
  "EntityCanais": [
    {
      "EntityCanalId": "sample string 1",
      "EntityId": 2,
      "CanalId": 3
    },
    {
      "EntityCanalId": "sample string 1",
      "EntityId": 2,
      "CanalId": 3
    }
  ]
}

application/xml, text/xml

Sample:
<AssociarEnderecoCanalBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
  <EntityCanais>
    <AssociarEnderecoCanal>
      <CanalId>3</CanalId>
      <EntityCanalId>sample string 1</EntityCanalId>
      <EntityId>2</EntityId>
    </AssociarEnderecoCanal>
    <AssociarEnderecoCanal>
      <CanalId>3</CanalId>
      <EntityCanalId>sample string 1</EntityCanalId>
      <EntityId>2</EntityId>
    </AssociarEnderecoCanal>
  </EntityCanais>
</AssociarEnderecoCanalBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AssociarEnderecoCanalResult
NameDescriptionTypeAdditional information
Succeeded

boolean

None.

Errors

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Succeeded": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<AssociarEnderecoCanalResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <Succeeded>true</Succeeded>
</AssociarEnderecoCanalResult>