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

ArgumentRequired
uidYes

Flags

FlagTypeDefaultDescription
--operatorstringOperator 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}.

Global flags (--output, --debug, --host, …) apply to every command. See the command reference overview.

What's next?

All commands

Browse the full CLI reference.

Get started

Install the CLI and authenticate.

Last updated on