Configuración de fases, mapeo y reglas de entrada
curl --request GET \
--url https://api.raul.ugps.io/api/v1/cases/configimport requests
url = "https://api.raul.ugps.io/api/v1/cases/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.raul.ugps.io/api/v1/cases/config', 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.raul.ugps.io/api/v1/cases/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.raul.ugps.io/api/v1/cases/config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.raul.ugps.io/api/v1/cases/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/cases/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"config": {
"version": 1,
"columns": [
{
"id": "pending",
"name": "Pendiente",
"color": "#F59E0B",
"order": 123,
"isFinal": true
}
],
"stageMap": {},
"entryRules": {},
"dueAlerts": {
"blinkSeconds": 123,
"default": {
"warnHours": 123,
"criticalHours": 123
},
"byType": {}
},
"replyAlert": {
"warnHours": 123,
"criticalHours": 123,
"windowDays": 123
},
"waitingStages": {
"stageKeys": [
"<string>"
],
"warnHours": 123,
"criticalHours": 123
},
"mentionAlert": {
"warnHours": 123,
"criticalHours": 123
}
},
"isDefault": true,
"updatedAt": "2023-11-07T05:31:56Z",
"pipelines": [
{
"kind": "opportunity",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"isDefault": true,
"stages": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"order": 123,
"isFinal": true,
"isWon": true,
"isLost": true,
"probability": 123
}
],
"columnByStage": {},
"entryRule": {
"type": "minStageOrder",
"minStageOrder": 123
}
}
],
"dueAlerts": {
"blinkSeconds": 123,
"default": {
"warnHours": 123,
"criticalHours": 123
},
"byType": {}
},
"replyAlert": {
"warnHours": 123,
"criticalHours": 123,
"windowDays": 123
},
"waitingStages": {
"stageKeys": [
"<string>"
],
"warnHours": 123,
"criticalHours": 123
},
"mentionAlert": {
"warnHours": 123,
"criticalHours": 123
},
"activityTypes": [
{
"id": 123,
"name": "<string>"
}
],
"warnings": [
{
"key": "<string>",
"pipelineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stageId": "<string>",
"stageName": "<string>"
}
],
"defaults": {
"dueAlerts": {
"blinkSeconds": 123,
"default": {
"warnHours": 123,
"criticalHours": 123
},
"byType": {}
},
"replyAlert": {
"warnHours": 123,
"criticalHours": 123,
"windowDays": 123
},
"waitingStages": {
"stageKeys": [
"<string>"
],
"warnHours": 123,
"criticalHours": 123
},
"mentionAlert": {
"warnHours": 123,
"criticalHours": 123
}
}
}cases
Configuración de fases, mapeo y reglas de entrada
GET
/
api
/
v1
/
cases
/
config
Configuración de fases, mapeo y reglas de entrada
curl --request GET \
--url https://api.raul.ugps.io/api/v1/cases/configimport requests
url = "https://api.raul.ugps.io/api/v1/cases/config"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.raul.ugps.io/api/v1/cases/config', 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.raul.ugps.io/api/v1/cases/config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.raul.ugps.io/api/v1/cases/config"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.raul.ugps.io/api/v1/cases/config")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.raul.ugps.io/api/v1/cases/config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"config": {
"version": 1,
"columns": [
{
"id": "pending",
"name": "Pendiente",
"color": "#F59E0B",
"order": 123,
"isFinal": true
}
],
"stageMap": {},
"entryRules": {},
"dueAlerts": {
"blinkSeconds": 123,
"default": {
"warnHours": 123,
"criticalHours": 123
},
"byType": {}
},
"replyAlert": {
"warnHours": 123,
"criticalHours": 123,
"windowDays": 123
},
"waitingStages": {
"stageKeys": [
"<string>"
],
"warnHours": 123,
"criticalHours": 123
},
"mentionAlert": {
"warnHours": 123,
"criticalHours": 123
}
},
"isDefault": true,
"updatedAt": "2023-11-07T05:31:56Z",
"pipelines": [
{
"kind": "opportunity",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"isDefault": true,
"stages": [
{
"id": "<string>",
"name": "<string>",
"color": "<string>",
"order": 123,
"isFinal": true,
"isWon": true,
"isLost": true,
"probability": 123
}
],
"columnByStage": {},
"entryRule": {
"type": "minStageOrder",
"minStageOrder": 123
}
}
],
"dueAlerts": {
"blinkSeconds": 123,
"default": {
"warnHours": 123,
"criticalHours": 123
},
"byType": {}
},
"replyAlert": {
"warnHours": 123,
"criticalHours": 123,
"windowDays": 123
},
"waitingStages": {
"stageKeys": [
"<string>"
],
"warnHours": 123,
"criticalHours": 123
},
"mentionAlert": {
"warnHours": 123,
"criticalHours": 123
},
"activityTypes": [
{
"id": 123,
"name": "<string>"
}
],
"warnings": [
{
"key": "<string>",
"pipelineId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"stageId": "<string>",
"stageName": "<string>"
}
],
"defaults": {
"dueAlerts": {
"blinkSeconds": 123,
"default": {
"warnHours": 123,
"criticalHours": 123
},
"byType": {}
},
"replyAlert": {
"warnHours": 123,
"criticalHours": 123,
"windowDays": 123
},
"waitingStages": {
"stageKeys": [
"<string>"
],
"warnHours": 123,
"criticalHours": 123
},
"mentionAlert": {
"warnHours": 123,
"criticalHours": 123
}
}
}Response
Configuración vigente o semilla, con warnings de las etapas abiertas sin fase
Show child attributes
Show child attributes
true si no hay configuración guardada (semilla)
Revisión guardada; se reenvía en el PUT para detectar conflictos (409). null sin fila
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Etapas abiertas sin fase en la configuración guardada; vacío en la semilla
Show child attributes
Show child attributes
Umbrales por defecto de las alertas del caso
Show child attributes
Show child attributes