Get a canon category
Módulo Canon
GET/canon/categories/{cat_urid}canonCategories.get
A category, the finest URID grain. Returns one canon category with its `ETag`. A canon category the caller may not see returns 404.
- Requiere la capacidad canon.taxonomy.read.
- Alcances de OAuth: canon.
- Estados de error: 400, 401, 404, 429. Los errores son detalles de problema RFC 9457.
Parámetros de ruta y de consulta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| cat_urid | Urid | Sí | Category URID `DDDD.DD.DD` from `xpms.dim_category` (Section 3.3). There is no fourth segment.Restricciones: pattern ^[0-9]000\.[0-9]{2}\.[0-9]{2}$ |
| fields | Fields | No | Sparse fieldset: a comma-separated list of top-level fields to return. `id` is always returned.Restricciones: pattern ^[a-z_][a-z0-9_]*(,[a-z_][a-z0-9_]*)*$ |
Respuesta 200: CanonCategory
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| cat_urid | Urid | Sí | Category URID `DDDD.DD.DD` from `xpms.dim_category` (Section 3.3). There is no fourth segment.Restricciones: pattern ^[0-9]000\.[0-9]{2}\.[0-9]{2}$ |
| disc_code | DiscCode | Sí | Discipline code `DDDD.DD` from `xpms.dim_discipline`. Canon holds .01 to .49; tenant extensions hold .50 to .99.Restricciones: pattern ^[0-9]000\.[0-9]{2}$ |
| category | string | Sí | Category name.Restricciones: length 1 to 200 |
| source | string | Sí | Canon source of the row.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| xyz | Xyz | null | Sí |
{
"cat_urid": "4000.01.01",
"disc_code": "4000.01",
"category": "Production Leadership",
"source": "canon",
"xyz": "X"
}Ejemplos de código
curl -X GET "$XOS_BASE_URL/canon/categories/4000.01.01" \
-H "Authorization: Bearer $XOS_API_KEY"const { data, etag } = await xos.canonCategories.get("4000.01.01");response = xos.canon_categories.get("4000.01.01")xos canon-categories get 4000.01.01