Poll a dry-run import count
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/import-preview-status/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/import-preview-status/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/import-preview-status/ \
--header 'Authorization: Bearer <token>'{
"state": "pending",
"counted": 123,
"importable": 123,
"result": {
"to_create": 123,
"to_update": 123,
"unchanged": 123,
"to_delete": 123,
"total_remote": 123,
"truncated": true,
"cap": 123
},
"error": "<string>"
}Connectors
Poll a dry-run import count
GET
/
projects
/
{project_id}
/
connections
/
{connection_id}
/
import-preview-status
/
Poll a dry-run import count
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/import-preview-status/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/import-preview-status/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/import-preview-status/ \
--header 'Authorization: Bearer <token>'{
"state": "pending",
"counted": 123,
"importable": 123,
"result": {
"to_create": 123,
"to_update": 123,
"unchanged": 123,
"to_delete": 123,
"total_remote": 123,
"truncated": true,
"cap": 123
},
"error": "<string>"
}Authorizations
BearerAuthTokenAuth
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Path Parameters
Response
Current state of the count