Skip to content

Get a canon act

Canon module

GET/canon/acts/{act_code}canonActs.get

An act: a presentation grouping of gates, never a control point. Returns one canon act with its `ETag`. A canon act the caller may not see returns 404.

  • Requires the capability canon.taxonomy.read.
  • OAuth scopes: canon.
  • Error statuses: 400, 401, 404, 429. Errors are RFC 9457 problem details.

Path and query parameters

canonActs.get: Path and query parameters
FieldTypeRequiredDescription
act_codeActCodeYesAct from `xpms.dim_act`.Constraints: pattern ^[A-Z]+$
fieldsFieldsNoSparse fieldset: a comma-separated list of top-level fields to return. `id` is always returned.Constraints: pattern ^[a-z_][a-z0-9_]*(,[a-z_][a-z0-9_]*)*$

Response 200: CanonAct

canonActs.get: CanonAct
FieldTypeRequiredDescription
ordinalintegerYesAct ordinal.Constraints: range 1 to any
act_codeActCodeYesAct from `xpms.dim_act`.Constraints: pattern ^[A-Z]+$
definitionstringYesDefinition, in sentence case.Constraints: length 1 to 20000
{
  "ordinal": 1,
  "act_code": "PLAN",
  "definition": "Everything before money is committed."
}

Code samples

curl -X GET "$XOS_BASE_URL/canon/acts/PLAN" \
  -H "Authorization: Bearer $XOS_API_KEY"
const { data, etag } = await xos.canonActs.get("PLAN");
response = xos.canon_acts.get("PLAN")
xos canon-acts get PLAN