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