Api event share get shareables

From Tygron Support wiki
Revision as of 14:50, 19 November 2026 by Server@tygron.com (talk | contribs) (Created page with "API Endpoint: api/event/share/get_shareables/ Description: Get all shareables in the given path. Tokenized shareables are included only for accounts with EDITOR level or higher. {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | REQUIRED | (String) | Path (e.g. "mydir/myname.tiff", note: viewers and directories end with a slash e.g. "mydir/viewer/") | |- | 1 | OPTIONAL | (Type or multiple values in array [a, b, c]) | Types (optional) | |} ===Res...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API Endpoint: api/event/share/get_shareables/

Description: Get all shareables in the given path. Tokenized shareables are included only for accounts with EDITOR level or higher.

Index Importance Type Description Values
0 REQUIRED (String) Path (e.g. "mydir/myname.tiff", note: viewers and directories end with a slash e.g. "mydir/viewer/")
1 OPTIONAL (Type or multiple values in array [a, b, c]) Types (optional)

Response Codes

Response Code: Description
200 Shareable[] (Shareable array)
300-600 Codes Overview

Example POST

Curl example POST

curl 'https://devshare.tygron.com/api/event/share/get_shareables/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>=' -d '"Path"'

JavaScript example POST

var options = {
 method: "POST",
 headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>=" },
 body: '"Path"'
};
fetch("https://devshare.tygron.com/api/event/share/get_shareables/", options)
 .then(response => response.text())
 .then(result => console.log(result))
 .catch(error => console.log('error', error));

See also