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.
PUT
인증
API key in format {id}.{secret}
경로 매개변수
Note GUID
본문
application/json
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"