Propose a tenant canon extension
Módulo Canon
POST/canon/extensions/proposecanonExtensions.propose
Proposes a tenant extension discipline or category in the `.50` to `.99` range, scoped to the caller's org. Codes outside the range are refused. Requires `Idempotency-Key`; a replay returns the original response. A rule that refuses the request returns 422 with `refusal` and `reason`.
- Requiere la capacidad canon.extension.write.
- Alcances de OAuth: canon.
- Envía el encabezado Idempotency-Key. Una repetición con la misma clave devuelve la respuesta original.
- Estados de error: 400, 401, 409, 422, 429. Los errores son detalles de problema RFC 9457.
Cuerpo de la solicitud: CanonIntakeCreate
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| proposed_kind | string | Sí | What kind of canon value is proposed.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| proposed_code | string | Sí | Proposed code.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| proposed_label | string | Sí | Proposed label.Restricciones: length 1 to 200 |
| rationale | string | Sí | Why the addition is needed.Restricciones: length 1 to 20000 |
{
"proposed_kind": "category",
"proposed_code": "4000.01.50",
"proposed_label": "Modular Stage Systems",
"rationale": "Several orgs track modular stage systems."
}Respuesta 201: CanonIntake
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| id | string (uuid) | Sí | Identifier of the canon intake. |
| created_at | string (date-time) | Sí | When the row was created. |
| updated_at | string (date-time) | Sí | When the row was last updated. |
| proposed_kind | string | Sí | What kind of canon value is proposed.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| proposed_code | string | Sí | Proposed code.Restricciones: pattern ^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$ |
| proposed_label | string | Sí | Proposed label.Restricciones: length 1 to 200 |
| rationale | string | Sí | Why the addition is needed.Restricciones: length 1 to 20000 |
| intake_state | string | Sí | Intake state. A Title Case value from the lifecycle's database enum.Restricciones: pattern ^[A-Z0-9][A-Za-z0-9&'/.()-]*( [A-Za-z0-9&'/.()-]+)*$ |
{
"id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"created_at": "2026-10-08T14:30:00Z",
"updated_at": "2026-10-08T14:30:00Z",
"proposed_kind": "category",
"proposed_code": "4000.01.50",
"proposed_label": "Modular Stage Systems",
"rationale": "Several orgs track modular stage systems.",
"intake_state": "Proposed"
}Ejemplos de código
curl -X POST "$XOS_BASE_URL/canon/extensions/propose" \
-H "Authorization: Bearer $XOS_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"proposed_kind":"category","proposed_code":"4000.01.50","proposed_label":"Modular Stage Systems","rationale":"Several orgs track modular stage systems."}'const { data } = await xos.canonExtensions.propose({
"proposed_kind": "category",
"proposed_code": "4000.01.50",
"proposed_label": "Modular Stage Systems",
"rationale": "Several orgs track modular stage systems."
});response = xos.canon_extensions.propose({"proposed_kind": "category", "proposed_code": "4000.01.50", "proposed_label": "Modular Stage Systems", "rationale": "Several orgs track modular stage systems."})xos canon-extensions propose --data '{"proposed_kind":"category","proposed_code":"4000.01.50","proposed_label":"Modular Stage Systems","rationale":"Several orgs track modular stage systems."}'