Starts an async export of clients to CSV format. Optionally specify a saved mapping or inline column mappings to control the output format. If no mapping is provided, all fields are exported with enum names as headers. Use the filter options to select which clients to include. To export the clients of a saved view, send its savedFilterCode: the file holds every client the view matches, with all of its filters applied. Use either savedFilterCode or filter, not both: sending both returns 400. To export the clients listed on a data quality report, send missingInformation (Missing client information) or recurringTaskSetup (Recurring task setup) with the report's filters, on its own: 400 when combined with a saved view, filters or the other report, or when the report lists no clients. Client visibility applies: a restricted user exports only the clients they can see. Returns 201 Created with downloadUrl if the export completes within 10 seconds, or 202 Accepted with a Location header to poll for completion.
Requires: Export on Clients.
Parameters
| Name | Type | Description |
|---|---|---|
| tenant* | path string | The Tenant.Code |
The Tenant.Code |
||
Request Body*
{
"mappingCode": "string",
"columnMappings": [
{
"csvHeader": "...",
"targetField": "...",
"customFieldCode": "..."
}
],
"includeHeaders": false,
"savedFilterCode": "string",
"filter": {
"managerCodes": [
"..."
],
"partnerCodes": [
"..."
],
"associateCodes": [
"..."
],
"statuses": [
"..."
],
"types": [
"..."
]
}
}