Departamentos
https://host/webservice/v1/su_ticket_setor
🟢Listar
{
"qtype" : "su_ticket_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" : "su_ticket_setor.id",//campo para ordenar a consulta
"sortorder" : "desc"//ordenação (asc= crescente | desc=decrescente)
}curl --location --request GET 'https://host/webservice/v1/su_ticket_setor' \
--header 'ixcsoft: listar' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"qtype" : "su_ticket_setor.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "2000",
"sortname" : "su_ticket_setor.id",
"sortorder" : "desc"
}'🟠Inserir
{
"id_conta":"",
"data":"",
"historico":""
}{
"mostra_hotsite": "N",
"setor": "teste teste",
"presta_atendimento": "N",
"email": "",
"exige_vinculo_produto": "N",
"ordem": "10",
"ativo": "S"
}curl --location 'https://host/webservice/v1/su_ticket_setor' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"mostra_hotsite": "N",
"setor": "teste teste",
"presta_atendimento": "N",
"email": "",
"exige_vinculo_produto": "N",
"ordem": "10",
"ativo": "S"
}'🔵Editar
Deve ser informado o id, a ser editado, na URL: https://host/webservice/v1/su_ticket_setor/5
Todos os campos devem ser inseridos para realizar uma alteração cadastral.
{
"mostra_hotsite": "N",
"setor": "teste teste",
"presta_atendimento": "N",
"email": "",
"exige_vinculo_produto": "N",
"ordem": "10",
"ativo": "S"
}curl --location --request PUT 'https://host/webservice/v1/su_ticket_setor/5' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data '{
"mostra_hotsite": "N",
"setor": "teste teste",
"presta_atendimento": "N",
"email": "",
"exige_vinculo_produto": "N",
"ordem": "10",
"ativo": "S"
}'🔴Deletar
Deve ser informado o id, a ser excluído, na URL: https://host/webservice/v1/su_ticket_setor/5
curl --location --request DELETE 'https://host/webservice/v1/su_ticket_setor/5' \
--header 'Authorization: Basic MzY3OmExNmMwZDVkZGM3ZjFiODViMzJmYzIyOThlMDM5MjgyNzg3NTkwMGQwNGNmMTNiMzY1Y2M2ZWMxMmViMTU3MzQ=' \
--header 'Cookie: IXC_Session=ovbcep20qrjqu43qhmthic8ms9' \
--data ''Last updated