Create Glossary Term
create_glossary_termAdds business terms to the SAS Business Glossary with validated attributes and immediate publishing, preventing rejected or invisible draft entries.
Instructions
Create a business term in the SAS Business Glossary.
attributes is keyed by the attribute labels from
get_glossary_term_type — call that first, because a term type can
make attributes mandatory and a term missing one is rejected. Pass each
value in its natural Python form and it is converted to the one spelling
the glossary accepts:
boolean —
True/False(the strings"true"/"false"are rejected by Viya; that conversion happens here)multi-select — a list, e.g.
["Retail", "Wholesale"]date —
"2026-09-04"date-time —
"2026-09-04T13:41:24Z"; a bare date or a numeric offset is normalised to UTC rather than rejectedtime —
"15:41:28Z"; seconds and theZare required, and a numeric offset is converted to UTC rather than dropped
Values are validated before the call, so a mistake comes back naming the attribute and what it expected, instead of as an opaque HTTP 400.
Terms are published by default. The underlying API defaults to
creating a draft, which nobody but its author can see; that is almost
never what a caller asking to "create a term" means, so this publishes
unless publish is set false. A draft is promoted afterwards with
update_glossary_term(publish=true), and is visible to
list_glossary_terms only under include_drafts.
A term's name must be unique among its siblings (case-insensitively) and differ from its parent's; a clash is rejected, not merged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Term name, max 100 characters, no backslashes. | |
| label | No | Display name, if it should differ from ``name``. | |
| publish | No | Publish immediately (default true). False leaves a draft, which ``update_glossary_term(publish=true)`` promotes later. | |
| parent_id | No | Parent term id, to nest this term in the hierarchy. | |
| term_type | Yes | The term type — its UUID or its name. Immutable afterwards. | |
| attributes | No | Custom attributes keyed by label, e.g. ``{"Scope": "Group", "Used in Risk": True, "Regions": ["EMEA", "APAC"]}``. | |
| definition | No | What the term means. The field users read; worth filling in. | |
| description | No | Short overview, max 1000 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||