ktm collections can-edit
Check edit permissions for a collection using the ktm collections can-edit command, which returns a simple can_edit boolean via the CLI.
Check whether the current user can edit a collection
Usage
ktm collections can-edit <uid> [flags]
Examples
ktm collections can-edit --operator my-op <uid>
ktm collections can-edit --operator my-op <uid> -o json | jq .can_edit
Arguments
| Argument | Required |
|---|---|
uid | Yes |
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--operator | string | Operator slug (required) |
Details
Permission probe. Useful before calling rename/move/delete to avoid a 403. The platform returns a bare JSON boolean which this command wraps as {can_edit: true|false}.
Related
Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.
What's next?
Last updated on