Arquivos
https://host/webservice/v1/su_ticket_arquivos
🟢Listar
{
"qtype" : "su_ticket_arquivos.id_ticket",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20000",
"sortname" : "su_ticket_arquivos.id",
"sortorder" : "asc"
}curl --location 'https://host/webservice/v1/su_ticket_arquivos' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzoxYWVmZWRiNTkzZjczZjYxNDM3NTI4ZWQ3OGViMjQ3ODFjYTAxNjczZDkxYWM2ODg2ZWM1MDZlNjlhMTQxY2Qz' \
--header 'Cookie: Path=/; IXC_Session=tfng0vehsv1rfllg97qp1i1tq2' \
--data ' {
"qtype" : "su_ticket_arquivos.id",
"query" : "1",
"oper" : ">=",
"page" : "1",
"rp" : "20000",
"sortname" : "su_ticket_arquivos.id",
"sortorder" : "asc"
}'🟠Inserir
{
"classificacao_arquivo": "P",//Padrão P
"id_ticket": "4",//ID do atendimento
"descricao": "teste",//Nome do arquivo
"local_arquivo": "/home/user/Downloads/teste.png"
} {
"classificacao_arquivo": "P",
"id_ticket": "4",
"descricao": "teste",
"local_arquivo": "/home/user/Downloads/teste.png",
"data_envio":"DD/MM/AAAA"
}curl --location 'https://host/webservice/v1/su_ticket_arquivos' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic MzoxYWVmZWRiNTkzZjczZjYxNDM3NTI4ZWQ3OGViMjQ3ODFjYTAxNjczZDkxYWM2ODg2ZWM1MDZlNjlhMTQxY2Qz' \
--header 'Cookie: Path=/; IXC_Session=tfng0vehsv1rfllg97qp1i1tq2' \
--data ' {
"classificacao_arquivo": "P",
"id_ticket": "4", //ID da Ordem de Serviço
"descricao": "Teste",//Nome do arquivo
"local_arquivo": "/home/user/Downloads/teste.png"
"data_envio":"DD/MM/AAAA"
}'🔴Deletar
Para deletar o arquivo, deves inserir o id od arquivo a ser excluído: https://host/webservice/v1/su_ticket_arquivos/5
curl --location --request DELETE 'https://host/webservice/v1/su_ticket_arquivos/5' \
--header 'Authorization: Basic MTo5YWExZGZjYTVkNmE1ODc0N2Y2Y2U4MjA3NzdhNGZmZTdmNDI1ZTQwNTYxNDZmZTVhNTA2YTE5OWMzNjNiZmVi'Last updated