Desvincular contato do Jurichat da pessoa do Juridiq
curl --request DELETE \
--url https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId} \
--header 'x-jurichat-api-key: <api-key>'import requests
url = "https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}"
headers = {"x-jurichat-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-jurichat-api-key': '<api-key>'}};
fetch('https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-jurichat-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-jurichat-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}")
.header("x-jurichat-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-jurichat-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"linked": true,
"linkId": "<string>",
"person": {
"id": "<string>",
"name": "<string>",
"document": "<string>",
"phone": "<string>"
},
"linkedAt": "<string>",
"source": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}Integration
Desvincular contato do Jurichat da pessoa do Juridiq
Remove apenas o vínculo identificado por linkId. Os dois cadastros e os arquivos já enviados são preservados. Exige edit:customer.
DELETE
/
integration
/
juridiq
/
contacts
/
{contactId}
/
link
/
{linkId}
Desvincular contato do Jurichat da pessoa do Juridiq
curl --request DELETE \
--url https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId} \
--header 'x-jurichat-api-key: <api-key>'import requests
url = "https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}"
headers = {"x-jurichat-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-jurichat-api-key': '<api-key>'}};
fetch('https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-jurichat-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-jurichat-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}")
.header("x-jurichat-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.jurichat.com/integration/juridiq/contacts/{contactId}/link/{linkId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-jurichat-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"linked": true,
"linkId": "<string>",
"person": {
"id": "<string>",
"name": "<string>",
"document": "<string>",
"phone": "<string>"
},
"linkedAt": "<string>",
"source": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"code": "<string>",
"details": "<string>"
}Authorizations
Chave de API do escritório (criada no painel). Envie o valor no header x-jurichat-api-key.
Path Parameters
ID do contato no Jurichat (Person.id).
Pattern:
^[cC][^\s-]{8,}$ID do vínculo a remover, devolvido no GET do vínculo.
Response
Default Response
Verdadeiro quando o contato tem pessoa vinculada.
ID do vínculo. Use no DELETE para desvincular.
Pessoa vinculada, ou null.
Show child attributes
Show child attributes
Data da criação do vínculo (ISO 8601).
Origem do vínculo: MANUAL, BUTTON, CRM ou backfill.