uc-apx edit authorization
Rewrite an existing top-level authorization scheme without rescaffolding it.
Only the flags you pass are touched; unrelated blocks (e.g. advanced) are
preserved. The settings block is rewritten only when —type, —body, or
—names is passed. Supported —type values mirror create authorization:
plSqlFunctionBody / plSqlExpression / existsSqlQuery / notExistsSqlQuery → —body
isInRoleOrGroup / isNotInRoleOrGroup → —names
Changing —type across shapes (body ↔ roles) requires the matching payload flag, since the old settings can’t be reinterpreted.
uc-apx edit authorization [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | New PL/SQL or SQL body for body-shape types (or @path/to/file; @@ escapes a literal leading @) | |
--dry-run | Print the rewritten file content to stdout without writing | ||
--error-message | string | Set error.errorMessage; pass "" to remove the error block | |
--id | string | Id of the authorization scheme to edit [required] | |
--name | string | New display name | |
--names | strings | New role/group name(s) for isInRoleOrGroup variants (repeatable, replaces existing) | |
--type | string | New authorization type (see help) |
Global Flags
Section titled “Global Flags”| Flag | Type | Default | Description |
|---|---|---|---|
--app-dir | string | . | Path to the APEX application directory |
--json-pretty | Output in pretty-printed JSON (human-readable) instead of minified JSON | ||
--toon | Output in TOON format (human-readable, token-efficient) instead of JSON |