curl --request POST \
--url https://api.juridiq.com.br/time-sheet/ \
--header 'Content-Type: application/json' \
--header 'x-juridiq-api-key: <api-key>' \
--data '
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"estimatedTimeMinutes": 1
}
'import requests
url = "https://api.juridiq.com.br/time-sheet/"
payload = {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"estimatedTimeMinutes": 1
}
headers = {
"x-juridiq-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-juridiq-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
estimatedTimeMinutes: 1
})
};
fetch('https://api.juridiq.com.br/time-sheet/', 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.juridiq.com.br/time-sheet/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'estimatedTimeMinutes' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-juridiq-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juridiq.com.br/time-sheet/"
payload := strings.NewReader("{\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"estimatedTimeMinutes\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-juridiq-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.juridiq.com.br/time-sheet/")
.header("x-juridiq-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"estimatedTimeMinutes\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juridiq.com.br/time-sheet/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-juridiq-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"estimatedTimeMinutes\": 1\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"title": "<string>",
"module": "TASK",
"isDone": true,
"officeId": "<string>",
"timeSpentSeconds": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": "PENDING",
"userId": "<string>",
"taskId": "<string>",
"audienceId": "<string>",
"subtaskId": "<string>",
"estimatedTimeMinutes": 123,
"cancelReason": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"vinculateItem": {
"id": "<string>",
"name": "<string>",
"processNumber": "<string>"
},
"thisUserCanEdit": true,
"userDetail": {
"name": "<string>",
"urlImage": "<string>"
},
"statusHistories": [
{
"id": "<string>",
"status": "PENDING",
"startedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"endedAt": "2023-11-07T05:31:56Z",
"timeSpent": 123
}
]
}
]{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}Criar apontamento de um item existente
curl --request POST \
--url https://api.juridiq.com.br/time-sheet/ \
--header 'Content-Type: application/json' \
--header 'x-juridiq-api-key: <api-key>' \
--data '
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"estimatedTimeMinutes": 1
}
'import requests
url = "https://api.juridiq.com.br/time-sheet/"
payload = {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"estimatedTimeMinutes": 1
}
headers = {
"x-juridiq-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-juridiq-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
title: '<string>',
estimatedTimeMinutes: 1
})
};
fetch('https://api.juridiq.com.br/time-sheet/', 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.juridiq.com.br/time-sheet/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>',
'estimatedTimeMinutes' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-juridiq-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.juridiq.com.br/time-sheet/"
payload := strings.NewReader("{\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"estimatedTimeMinutes\": 1\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-juridiq-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.juridiq.com.br/time-sheet/")
.header("x-juridiq-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"estimatedTimeMinutes\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.juridiq.com.br/time-sheet/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-juridiq-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\",\n \"estimatedTimeMinutes\": 1\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"title": "<string>",
"module": "TASK",
"isDone": true,
"officeId": "<string>",
"timeSpentSeconds": 123,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": "PENDING",
"userId": "<string>",
"taskId": "<string>",
"audienceId": "<string>",
"subtaskId": "<string>",
"estimatedTimeMinutes": 123,
"cancelReason": "<string>",
"completedAt": "2023-11-07T05:31:56Z",
"vinculateItem": {
"id": "<string>",
"name": "<string>",
"processNumber": "<string>"
},
"thisUserCanEdit": true,
"userDetail": {
"name": "<string>",
"urlImage": "<string>"
},
"statusHistories": [
{
"id": "<string>",
"status": "PENDING",
"startedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"endedAt": "2023-11-07T05:31:56Z",
"timeSpent": 123
}
]
}
]{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"translateMessage": "<string>"
}Authorizations
Chave de API do escritório (criada no painel). Envie o valor no header x-juridiq-api-key. A API aberta aplica rate limit por chave (veja a documentação de integradores).
Body
Cria o apontamento (TimeSheet) de um item já existente
Cria o apontamento (TimeSheet) de um item já existente
Módulo do apontamento
TASK, AUDIENCE, SUBTASK, GENERAL ID da tarefa/subtarefa/audiência (obrigatório, exceto GENERAL)
Título do apontamento (obrigatório para GENERAL)
1Status inicial (apenas GENERAL; padrão PENDING)
PENDING, IN_PROGRESS, PAUSED, COMPLETED, CANCELLED Tempo previsto em minutos (apenas GENERAL)
x >= 0Response
Apontamentos criados/relacionados ao item
ID do apontamento
Título
Módulo
TASK, AUDIENCE, SUBTASK, GENERAL Concluído
ID do escritório
Tempo gasto somando os históricos (segundos)
Data de criação
Data de atualização
Status atual
PENDING, IN_PROGRESS, PAUSED, COMPLETED, CANCELLED ID do usuário
ID da tarefa
ID da audiência
ID da subtarefa
Tempo estimado (minutos)
Motivo do cancelamento
Data de finalização (conclusão/cancelamento)
Item vinculado (tarefa/subtarefa/audiência)
Show child attributes
Show child attributes
Indica se o usuário da requisição é o dono do apontamento
Dados do usuário do apontamento
Show child attributes
Show child attributes
Históricos de status
Show child attributes
Show child attributes

