Api event share move: Difference between revisions
Jump to navigation
Jump to search
Created page with "API Endpoint: api/event/share/move/ Description: Move the Shareable to a new path. {|class=wikitable !Index !Importance !Type !Description !Values |- | 0 | REQUIRED | (String) | Old Path (e.g. "mydir/myname.tiff", note: viewers and directories end with a slash e.g. "mydir/viewer/") | |- | 1 | REQUIRED | (String) | New Path (e.g. "mydir/myname.tiff", note: viewers and directories end with a slash e.g. "mydir/viewer/") | |} ===Response Codes=== {|class=wikitable !Respo..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 35: | Line 35: | ||
===Example POST=== | ===Example POST=== | ||
Curl example POST | Curl example POST | ||
<syntaxhighlight lang="text" copy>curl 'https://devshare.tygron.com/api/event/share/move/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials> | <syntaxhighlight lang="text" copy>curl 'https://devshare.tygron.com/api/event/share/move/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "Old Path", "New Path" ]' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
JavaScript example POST | JavaScript example POST | ||
<syntaxhighlight lang="text" copy>var options = { | <syntaxhighlight lang="text" copy>var options = { | ||
method: "POST", | method: "POST", | ||
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials> | headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" }, | ||
body: '[ "Old Path", "New Path" ]' | body: '[ "Old Path", "New Path" ]' | ||
}; | }; | ||
Latest revision as of 15:18, 20 November 2026
API Endpoint: api/event/share/move/
Description: Move the Shareable to a new path.
| Index | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (String) | Old Path (e.g. "mydir/myname.tiff", note: viewers and directories end with a slash e.g. "mydir/viewer/") | |
| 1 | REQUIRED | (String) | New Path (e.g. "mydir/myname.tiff", note: viewers and directories end with a slash e.g. "mydir/viewer/") |
Response Codes
| Response Code: | Description |
|---|---|
| 200 | String (String) |
| 300-600 | Codes Overview |
Example POST
Curl example POST
curl 'https://devshare.tygron.com/api/event/share/move/' -H 'Content-Type: application/json' -H 'Authorization: Basic <credentials>' -d '[ "Old Path", "New Path" ]'JavaScript example POST
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Basic <credentials>" },
body: '[ "Old Path", "New Path" ]'
};
fetch("https://devshare.tygron.com/api/event/share/move/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));