Reportar inconsistencias
Reportar qualquer inconsistência nos dados capturados de forma automatizada.
Pode ser adicionado qualquer título e descrição,
Recomendamos a padronização dos reportes de forma automazida.
Requisição
POST https://api.push.codilo.com.br/v1/processo/reportar/{processoId}
Parâmetros
Nome | Tipo | Obrigatório | Descrição |
---|---|---|---|
title | string | true | Titulo do reporte |
description | string | true | Descrição do reporte |
priority | string | true | Número de prioridade: 1-4 |
type | string | true | Tipo do reporte: bug ou feature |
Exemplos
- cURL
- Python
- PHP
- NodeJs
curl --request POST \
--url https://api.push.codilo.com.br/v1/processo/reportar/2ed4c9b1-dfdf-4c05-8adb-565eee6c433d \
--header 'Authorization: Bearer eyJh...s-82g' \
--header 'Content-Type: application/json' \
--data '{ "title": "Título Exemplo", "description": "Descrição Exemplo", "priority": "4", "type": "bug" }'
import requests
headers = {
'Authorization': 'Bearer eyJh...s-82g',
}
json_data = {
'title': 'Título Exemplo'
'description': 'Descrição Exemplo'
'priority': '4'
'type': 'bug'
}
response = requests.post('https://api.push.codilo.com.br/v1/processo/reportar/2ed4c9b1-dfdf-4c05-8adb-565eee6c433d', headers=headers, json=json_data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.push.codilo.com.br/v1/processo/reportar/2ed4c9b1-dfdf-4c05-8adb-565eee6c433d');
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, "{ \"title\": \"Título Exemplo\", \"description\": \"Descrição Exemplo\", \"priority\": \"4\", \"type\": \"bug\" }");
$response = curl_exec($ch);
curl_close($ch);
var request = require("request");
var headers = {
Authorization: "Bearer eyJh...s-82g",
"Content-Type": "application/json",
};
var dataString =
'{ "title": "Título Exemplo", "description": "Descrição Exemplo", "priority": "4", "type": "bug" }';
var options = {
url: "https://api.push.codilo.com.br/v1/processo/reportar/2ed4c9b1-dfdf-4c05-8adb-565eee6c433d",
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": {
"hash": "64cbc4a3",
"title": "Título Exemplo",
"description": "Descrição do Exemplo",
"priority": "4",
"type": "bug"
}
}
Status | Significado | Descrição | Schema |
---|---|---|---|
200 | OK | Sucesso | None |
401 | Unauthorized | Access denied | None |
500 | Internal Server error | Result cannot be resolved | None |