business-areas

Atualizar uma área de negócio

Changed on

Renomeia uma área de negócio. O identificador efetivamente usado é o id enviado no corpo — repita nele o mesmo valor colocado na URL. O novo nome precisa ser único na empresa, considerando também as áreas arquivadas.

put/api/management/business-areas/{business_area}

Request

  • Base URL: https://api.olie.ai
  • URL: https://api.olie.ai/api/management/business-areas/{business_area}
  • Auth: HTTP bearer

Request body

idinteger required

Identificador da área de negócio a ser atualizada; é este valor, e não o da URL, que determina o registro alterado. Obrigatório.

namestring required

Novo nome da área. Precisa ser único na empresa, inclusive entre as áreas arquivadas. Obrigatório.

Response

Sucesso

responseboolean

Indica que a requisição foi concluída com sucesso. Sempre true.

Changes

    • breaking

      added the new required request property

    • breaking

      the request property became required

    • breaking

      the request property's minLength was increased from 0 to 1

    • info

      added the optional property / to the response with the status

    • warning

      removed the request property

    • warning

      removed the optional property / from the response with the status