Skip to main content

mr note unshare

Remove the share token from a note, invalidating any previous share URL. Calling unshare on a note that is not currently shared is a no-op from the client's perspective but still returns success. After unsharing, subsequent get responses will omit the shareToken field entirely.

Usage

mr note unshare <id>

Positional arguments:

  • <id>

Examples

Unshare note 42

mr note unshare 42

Unshare and confirm via JSON response

mr note unshare 42 --json | jq -e '.success == true'

Flags

This command has no local flags.

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Object with success (bool, true) on successful unshare

Exit Codes

0 on success; 1 on any error

See Also