---
title: "Inclui, altera ou exclui aviso de desocupação no contrato do locatário"
method: POST
path: "/Locatario/SalvarAvisoDesocupacao"
tags: ["Locatário"]
---

# Inclui, altera ou exclui aviso de desocupação no contrato do locatário

`POST /Locatario/SalvarAvisoDesocupacao`

## Request

- Base URL: `https://api.imoview.com.br`
- URL: `https://api.imoview.com.br/Locatario/SalvarAvisoDesocupacao`
- Auth: API key in header `chave`

Incluir/alterar/excluir aviso de desocupação

## Request body

- object
  - `codigocliente` integer
  - `codigocontratoaluguel` integer
  - `codigomotivo` integer
  - `complementomotivo` string, string
  - `datarescisao` string, string
  - `excluir` boolean

## Response `200`

Imóveis

- object
  - `mensagem` string, string

## Other responses

- `401`: Header 'chave' ausente ou inválido, ou chave/usuário sem permissão para a operação
- `403`: Regra de negócio violada ou limite de paginação excedido
- `404`: Parâmetro obrigatório ausente ou inválido, registro não encontrado ou consulta sem resultado
- `429`: Limite de requisições da chave excedido
- `500`: Falha interna não prevista

## Changes

- **2026-10-09** `d7f65bff1506`: 3 breaking, 5 info
  - the `codigocliente` request property format changed from `Int64` to `int64`
  - the `codigocontratoaluguel` request property format changed from `Int64` to `int64`
  - the `codigomotivo` request property format changed from `Int64` to `int64`
  - added the non-success response with the status `401`
  - …4 more

[Operation history](https://skmtc.dev/imoview/apis/imoview-api/changes/Locatario/SalvarAvisoDesocupacao/post.md)

---

[API](https://skmtc.dev/imoview/apis/imoview-api.md) - [All operations](https://skmtc.dev/imoview/apis/imoview-api/llms.txt) - [OpenAPI document](https://skmtc.dev/imoview/apis/imoview-api/revisions/436e609983d0?raw)
