import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/start-import/"
payload = { "category_slug": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({category_slug: '<string>'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/start-import/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/start-import/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category_slug": "<string>"
}
'{
"error": "You do not have permission to perform this action."
}Start importing the connection's saved selection
Queues an import of the folders/files saved with set-selection (also what “Sync now”
calls). Only the connection’s owner may call it. Refused with a 402
before anything is downloaded when the organization is out of credits, the store is
over its CCU ceiling, or the connection’s owner is over their per-user ceiling (new
documents bill to the owner). Processing re-checks each batch against the same
ceiling, so a large import can still stop partway.
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/start-import/"
payload = { "category_slug": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({category_slug: '<string>'})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/start-import/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/connections/{connection_id}/start-import/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category_slug": "<string>"
}
'{
"error": "You do not have permission to perform this action."
}Authorizations
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
Body
Response
Import queued; the connection is returned with status importing.