Confirmar leitura item
Confirmar a leitura/salvamento dos dados retornados.
Requisição
POST https://api.push.codilo.com.br/v1/confirmar
Parâmetros
Nome | Tipo | Obrigatório | Descrição |
---|---|---|---|
cnjId | uuid | true | ID do processo a ser confirmado os dados |
coverIds | array | false | IDs de cada objeto de capa |
propertyIds | array | false | IDs de cada objeto de propriedade |
personIds | array | false | IDs de cada objeto de partes |
stepIds | array | false | IDs de cada objeto de andamento |
Exemplos
- cURL
- Python
- PHP
- NodeJs
curl --request POST \
--url https://api.push.codilo.com.br/v1/confirmar \
--header 'Authorization: Bearer eyJh...s-82g' \
--header 'Content-Type: application/json' \
--data '{ "cnjId": "item-uuidv4", "coverIds": ["item-uuidv4", "item-uuidv4", "item-uuidv4"] }'
import requests
headers = {
'Authorization': 'Bearer eyJh...s-82g',
}
json_data = {
'cnjId': 'item-uuidv4', 'coverIds': ['item-uuidv4', 'item-uuidv4', 'item-uuidv4'],
}
response = requests.post('https://api.push.codilo.com.br/v1/confirmar', headers=headers, json=json_data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.push.codilo.com.br/v1/confirmar');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer eyJh...s-82g',
'Content-Type: application/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{ "cnjId": "item-uuidv4", "coverIds": ["item-uuidv4", "item-uuidv4", "item-uuidv4"] }');
$response = curl_exec($ch);
curl_close($ch);
var request = require("request");
var headers = {
Authorization: "Bearer eyJh...s-82g",
"Content-Type": "application/json",
};
var dataString =
'{ "cnjId": "item-uuidv4", "coverIds": ["item-uuidv4", "item-uuidv4", "item-uuidv4"] }';
var options = {
url: "https://api.push.codilo.com.br/v1/confirmar",
method: "POST",
headers: headers,
body: dataString,
};
function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
request(options, callback);
Respostas
- Sucesso
{
"success": true,
"data": {
"cnjId": "bc74ac7d-acfc-4daa-98e8-6238c1ffe03b",
"coverIds": ["29d22970-b12a-4c3b-b5f6-f6b1774d6aa3"],
"propertyIds": [
"26fce6c8-ac05-4ca4-901c-32a89e6ef1cb",
"f8d7d421-04dd-4e94-817c-80c823603664",
"ad15c5ad-3f24-4025-aac4-b8cce20caf2b",
"022bc9e8-3eec-4da5-bd55-58704fe63cb5",
"a3a661ea-ca4f-4eb2-8391-4920dd858b74",
"81c96fc1-2ca7-4ed4-a9d0-0e76bc5b676e"
],
"personIds": [
"b4b316f8-be40-4da3-9679-84b7c265dd07",
"3e747449-d29d-4550-9296-4ed75ca79770"
],
"stepIds": [
"895e87ba-5b67-4a4a-920d-422be26354e6",
"8cd91886-4d43-418c-8fdb-3006c57a9451",
"aaaa8d8f-27ee-4a6e-a886-0c5206e7b807",
"53662e1e-56e8-4d11-b291-03741f9421a7"
]
}
}
Status | Significado | Descrição | Schema |
---|---|---|---|
200 | OK | Sucesso | None |
401 | Unauthorized | Access denied | None |
500 | Internal Server error | Result cannot be resolved | None |