Setor
https://host/webservice/v1/empresa_setor
🟢Listar
{
"qtype" : "empresa_setor.id",//campo de filtro
"query" : "1",//valor para consultar
"oper" : ">=",//operador da consulta
"page" : "1",//página a ser mostrada
"rp" : "2000",//quantidade de registros por página
"sortname" : "empresa_setor.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/empresa_setor' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"qtype" : "empresa_setor.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "empresa_setor.id",
"sortorder" : "desc"
}'🟠Inserir
{
"setor":"",
"ativo":""//S ou N
}{
"empresa_setor_chatid_telegram": "",
"token_bot_telegram_setor": "0",
"setor": "teste",
"id_depto": "8",
"recebe_telegram_setor": "",
"ativo": "S",
"cor": ""
}curl --location 'https://host/webservice/v1/empresa_setor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"empresa_setor_chatid_telegram": "",
"token_bot_telegram_setor": "0",
"setor": "teste",
"id_depto": "8",
"recebe_telegram_setor": "",
"ativo": "S",
"cor": ""
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/empresa_setor/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"empresa_setor_chatid_telegram": "",
"token_bot_telegram_setor": "0",
"setor": "teste",
"id_depto": "8",
"recebe_telegram_setor": "",
"ativo": "S",
"cor": ""
}curl --location --request PUT 'https://host/webservice/v1/empresa_setor/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"empresa_setor_chatid_telegram": "",
"token_bot_telegram_setor": "0",
"setor": "teste",
"id_depto": "8",
"recebe_telegram_setor": "",
"ativo": "S",
"cor": ""
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/empresa_setor/5
curl --location --request DELETE 'host/webservice/v1/empresa_setor/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data ''Last updated