Flujos
Flujos - Etiquetas
GET/suite/wkf/flujos/etiquetas
Lista las etiquetas de la empresa y permite consultar una etiqueta específica con paginación.
Rutas alternativas
/suite/wkf/flujos/etiquetas/:tkWorkflowEtiqueta
Parámetros
| Nombre | Tipo | Validación | Descripción |
|---|
tkWorkflowEtiqueta | varchar | | Identificador de la etiqueta. |
pagina | int | | Número de página que se consulta. |
cantidadRegistros | int | | Cantidad máxima de registros por página. |
Respuesta
| Nombre | Tipo | Descripción |
|---|
indice | Integer | Posición de la etiqueta dentro de la respuesta. |
workflowEtiqueta | String | Nombre de la etiqueta. |
color | String | Color configurado para la etiqueta. |
tkWorkflowEtiqueta | String | Identificador de la etiqueta. |
tkEmpresa | String | Identificador de la empresa. |
Solicitud
curl --request GET \
--url '{{API_URL}}/suite/wkf/flujos/etiquetas?pagina=1&cantidadRegistros=20' \
--header 'token: {{TOKEN}}'const token = "{{TOKEN}}";
const response = await fetch("{{API_URL}}/suite/wkf/flujos/etiquetas?pagina=1&cantidadRegistros=20", {
method: "GET",
headers: { token }
});
console.log(await response.json());// Node.js 18 o posterior
const token = "{{TOKEN}}";
const response = await fetch("{{API_URL}}/suite/wkf/flujos/etiquetas?pagina=1&cantidadRegistros=20", {
method: "GET",
headers: { token }
});
console.log(await response.json());import requests
response = requests.get(
"{{API_URL}}/suite/wkf/flujos/etiquetas?pagina=1&cantidadRegistros=20",
headers={"token": "{{TOKEN}}"}
)
response.raise_for_status()
print(response.json())package main
import (
encoding/json
"net/http"
)
func main() {
request, err := http.NewRequest(http.MethodGet, "{{API_URL}}/suite/wkf/flujos/etiquetas?pagina=1&cantidadRegistros=20", nil)
if err != nil { panic(err) }
request.Header.Set("token", "{{TOKEN}}")
response, err := http.DefaultClient.Do(request)
if err != nil { panic(err) }
defer response.Body.Close()
var result any
if err := json.NewDecoder(response.Body).Decode(&result); err != nil { panic(err) }
}using System.Net.Http;
using System.Net.Http.Json;
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("token", "{{TOKEN}}");
using var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Get, "{{API_URL}}/suite/wkf/flujos/etiquetas?pagina=1&cantidadRegistros=20"));
response.EnsureSuccessStatusCode();
var result = await response.Content.ReadFromJsonAsync<object>();
Respuesta
[
{
"indice": 1,
"workflowEtiqueta": "Prioridad alta",
"color": "#FF2D6A",
"tkWorkflowEtiqueta": "00000000-0000-4000-8000-000000000017",
"tkEmpresa": "00000000-0000-4000-8000-000000000010"
}
]