Sync Data Connector
curl --request POST \
--url https://api.zerodrive.dev/v1/connectors/{connector_id}/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_rows": 5000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({max_rows: 5000})
};
fetch('https://api.zerodrive.dev/v1/connectors/{connector_id}/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/connectors/{connector_id}/sync"
payload = { "max_rows": 5000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Sync Data Connector
Sync an external data connector into CSV, JSON schema, and README files under its mount folder.
POST
https://api.zerodrive.dev
/
v1
/
connectors
/
{connector_id}
/
sync
Sync Data Connector
curl --request POST \
--url https://api.zerodrive.dev/v1/connectors/{connector_id}/sync \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"max_rows": 5000
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({max_rows: 5000})
};
fetch('https://api.zerodrive.dev/v1/connectors/{connector_id}/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/connectors/{connector_id}/sync"
payload = { "max_rows": 5000 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
