Create evaluation export
curl --request POST \
--url https://api.craftcx.com/v1/evaluations/exports \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"from": 1,
"to": 1
},
"format": "csv",
"kind": "axis"
}
'import requests
url = "https://api.craftcx.com/v1/evaluations/exports"
payload = {
"filters": {
"from": 1,
"to": 1
},
"format": "csv",
"kind": "axis"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({filters: {from: 1, to: 1}, format: 'csv', kind: 'axis'})
};
fetch('https://api.craftcx.com/v1/evaluations/exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created_at": 123,
"download_url": "<string>",
"filters": {
"from": 1,
"to": 1
},
"format": "csv",
"id": "<string>",
"kind": "axis",
"status": "pending",
"updated_at": 123,
"error_message": "<string>"
}{
"status": 400,
"title": "<string>",
"detail": "<string>",
"type": "about:blank"
}{
"status": 401,
"title": "<string>",
"detail": "<string>",
"type": "about:blank"
}{
"status": 500,
"title": "<string>",
"detail": "<string>",
"type": "about:blank"
}Export Data
Create evaluation export
Queue an evaluation export job
POST
/
v1
/
evaluations
/
exports
Create evaluation export
curl --request POST \
--url https://api.craftcx.com/v1/evaluations/exports \
--header 'Content-Type: application/json' \
--data '
{
"filters": {
"from": 1,
"to": 1
},
"format": "csv",
"kind": "axis"
}
'import requests
url = "https://api.craftcx.com/v1/evaluations/exports"
payload = {
"filters": {
"from": 1,
"to": 1
},
"format": "csv",
"kind": "axis"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({filters: {from: 1, to: 1}, format: 'csv', kind: 'axis'})
};
fetch('https://api.craftcx.com/v1/evaluations/exports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created_at": 123,
"download_url": "<string>",
"filters": {
"from": 1,
"to": 1
},
"format": "csv",
"id": "<string>",
"kind": "axis",
"status": "pending",
"updated_at": 123,
"error_message": "<string>"
}{
"status": 400,
"title": "<string>",
"detail": "<string>",
"type": "about:blank"
}{
"status": 401,
"title": "<string>",
"detail": "<string>",
"type": "about:blank"
}{
"status": 500,
"title": "<string>",
"detail": "<string>",
"type": "about:blank"
}Body
application/json
Response
The queued evaluation export job