curl --request POST \
--url https://api.cloud.flexprice.io/v1/tasks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"entity_type": "EVENTS",
"file_name": "<string>",
"file_type": "CSV",
"file_url": "<string>",
"metadata": {},
"task_type": "IMPORT"
}'
{
"completed_at": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"entity_type": "EVENTS",
"error_summary": "<string>",
"failed_at": "<string>",
"failed_records": 123,
"file_name": "<string>",
"file_type": "CSV",
"file_url": "<string>",
"id": "<string>",
"metadata": {},
"processed_records": 123,
"started_at": "<string>",
"status": "<string>",
"successful_records": 123,
"task_status": "PENDING",
"task_type": "IMPORT",
"tenant_id": "<string>",
"total_records": 123,
"updated_at": "<string>",
"updated_by": "<string>"
}
Create a new import/export task
curl --request POST \
--url https://api.cloud.flexprice.io/v1/tasks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"entity_type": "EVENTS",
"file_name": "<string>",
"file_type": "CSV",
"file_url": "<string>",
"metadata": {},
"task_type": "IMPORT"
}'
{
"completed_at": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"entity_type": "EVENTS",
"error_summary": "<string>",
"failed_at": "<string>",
"failed_records": 123,
"file_name": "<string>",
"file_type": "CSV",
"file_url": "<string>",
"id": "<string>",
"metadata": {},
"processed_records": 123,
"started_at": "<string>",
"status": "<string>",
"successful_records": 123,
"task_status": "PENDING",
"task_type": "IMPORT",
"tenant_id": "<string>",
"total_records": 123,
"updated_at": "<string>",
"updated_by": "<string>"
}
Enter your API key in the format x-api-key <api-key>*
Task details
The body is of type object
.
Created
The response is of type object
.