Inclui, altera ou remove portais (anúncios) em imóveis do Imoview CRM
Changed onRetorno JSON para incluir/alterar (ou remover) o anúncio de imóveis em portais do imoview CRM. Aceita lote nos dois níveis - vários imóveis e vários portais por imóvel - sendo um imóvel com um portal o caso particular.<br><br><strong>codigoportal = 0</strong> significa 'meu site' (marca/desmarca 'Exibir meu site' e o destaque do site).<br><strong>tipodestaque</strong> não informado mantém o destaque atual do anúncio (assume 1 - simples quando o imóvel ainda não está no portal).<br>Chave inválida e erros de entrada (lista de imóveis vazia ou acima do máximo, usuário inexistente ou sem a autoridade) retornam 401/404 como nos demais endpoints. Passada essa etapa, um erro em um item <strong>não interrompe o lote</strong>: o retorno é sempre 200 com o resultado de cada imóvel/portal em <strong>lista</strong> (sucesso e mensagem). O portal precisa estar habilitado para o convênio na inclusão/alteração (na remoção não).<br><br>Tokens disponíveis:<br>codigousuario: OPCIONAL - Enviar o usuário do Imoview CRM, que precisa ter a autoridade 'Gerenciar imóveis em portais'. Não enviando, a alteração é auditada no usuário robô<br>imoveis [{ OBRIGATÓRIO - Enviar ao menos um imóvel, máximo 100<br>codigoimovel: OBRIGATÓRIO - Enviar o código do imóvel<br>portais [{ OBRIGATÓRIO - Enviar ao menos um portal (o mesmo portal não pode ser repetido para o mesmo imóvel)<br>codigoportal: OBRIGATÓRIO - Enviar o código do portal habilitado no convênio ou 0 para meu site<br>tipodestaque: OPCIONAL - Enviar 1 (simples), 2 (destaque), 3 (super destaque), 4 (premiere destaque especial), 5 (premiere destaque premium) ou 6 (triplo). Não enviando, mantém o destaque atual do anúncio<br>remover: OPCIONAL - Enviar true para retirar o imóvel do portal, caso contrário assumirá false (inclui/altera)<br>}]<br>}]
Request
- Base URLhttps://api.imoview.com.br
- URLhttps://api.imoview.com.br/Imovel/AlterarPortaisImoveis
- AuthAPI key in header chave
Request body
Example request
{
"codigousuario": 10,
"imoveis": [
{
"codigoimovel": 1234,
"portais": [
{
"codigoportal": 1,
"tipodestaque": 2
}
]
}
]
}Response
Retornado com sucesso
Example response
{
"lista": [
{
"nomeportal": "string",
"mensagem": "string"
}
]
}Changes
- breaking
the
request property format changed fromInt64toint64 - breaking
the
//request property format changed fromInt64toint64 - breaking
the
////request property format changed fromInt64toint64 - breaking
the
////request property format changed fromInt64toint64 - breaking
the
//response's property format changed fromInt64toint64for status - breaking
the
//response's property format changed fromInt64toint64for status - breaking
the
response's property format changed fromInt64toint64for status - breaking
the
response's property format changed fromInt64toint64for status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking