Register Local Symlink
curl --request POST \
--url https://api.zerodrive.dev/v1/symlinks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"local_path": "<string>",
"vault_target": "<string>",
"device_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({local_path: '<string>', vault_target: '<string>', device_id: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/symlinks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/symlinks"
payload = {
"local_path": "<string>",
"vault_target": "<string>",
"device_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Register Local Symlink
Register a local symlink on a device mapping to a vault folder.
POST
https://api.zerodrive.dev
/
v1
/
symlinks
Register Local Symlink
curl --request POST \
--url https://api.zerodrive.dev/v1/symlinks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"local_path": "<string>",
"vault_target": "<string>",
"device_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({local_path: '<string>', vault_target: '<string>', device_id: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/symlinks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/symlinks"
payload = {
"local_path": "<string>",
"vault_target": "<string>",
"device_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
