Upsert Share Link
Create or update a share link for a note.
- If no link exists, creates a new one. If it already exists, updates password settings.
- An empty body
{}creates a link without a password.
usePassword behavior
usePassword | No existing link | Existing link |
|---|---|---|
null (omit) | Create without password | Keep current state |
true | Create with password | (Re)generate password |
false | Create without password | Remove password |
sharePasswordis only included whenusePassword: true. Store it immediately — it cannot be retrieved later.
인증
API key in format {id}.{secret}.
The notes an endpoint returns depend on the key type. A user key reaches the notes that user can see in the app, including notes in their own private folders. A system key (workspace or organization, no user identity) reaches only notes that sit in a folder shared with all workspace members. Notes in a private folder, in a folder shared with only some members, or in no folder at all fall outside a system key's read scope, and scopes do not widen that boundary.
List and search endpoints drop out-of-scope notes from the response without an
error. Single-note reads and their sub-resources return 404, the same response
as a deleted note. See What notes a system key reads.
경로 매개변수
Note GUID
본문
Controls the share link password.
true— Generate password (regenerate if one exists)false— Remove password (or create without one)null/ omitted — Keep current password state
응답
Share link created or updated
Unique share link identifier
"LHr1bHvCCdVCG"
Full URL for accessing the shared note
"https://tiro.ooo/s/LHr1bHvCCdVCG"
Whether the share link has a password
true
Share link password.
- Only returned on PUT with
usePassword: true - Always
nullin GET responses
"a1b2c3d4"