`POST /v1/orgs/{org}/compliance/exports`.
const url = 'https://api.updawg.net/v1/orgs/example/compliance/exports';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"group":"example","kind":"hosts_csv","since":"example","until":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.updawg.net/v1/orgs/example/compliance/exports \ --header 'Content-Type: application/json' \ --data '{ "group": "example", "kind": "hosts_csv", "since": "example", "until": "example" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Organization slug.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Only the hosts this group (grp_…) resolves to when the export is made.
Start of the patch-latency period (RFC 3339), for resolutions_csv and
report_pdf. Default: 90 days before until.
End of the period, exclusive. Default: now.
Responses
Section titled “Responses”Queued. Poll it until status is ready, then GET its download. Audited as compliance.export_requested.
object
Where to GET the file, while it can be: the API path, relative to
the API’s own address.
Why it failed.
After this the file is no longer handed out.
What the download is called, once ready.
exp_….
What an export contains.
usr_…; absent once that person’s account is gone.
Data rows, for a CSV.
Where an export is.
Example
{ "kind": "hosts_csv", "status": "queued"}No kind, or a period or group the report would refuse.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No session.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Not permitted for this role, no CSRF token, or an API token: a person asks for an export. Or the plan does not include compliance reports (Business): plan-required.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}No such organization, or not yours.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Three exports are already being made for this organization: exports-busy.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}The organization’s data is in another region (wrong-region, DAWG-159). detail names that region’s API; send the request there.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}Over the organization’s request limit. Retry-After says when to try again; RateLimit-Limit is the burst.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}This deployment has nowhere to put the files: exports-unavailable.
object
Example generated
{ "detail": "example", "status": 1, "title": "example", "type": "example"}