One export job
curl --request GET \ --url https://api.whatsbuilt.fi/v1/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/export-jobs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The job’s id
Responses
Section titled “Responses”The job
An export job.
object
What a job exports.
Poll while queued or running. done: download each file. refused: message says why (too large, too slow). failed: start it again with a new Idempotency-Key; a job cut off before it ends reads failed a minute after it started. expired: the files are gone. New statuses may come.
The parameters of an export job.
object
fi or en.
object
What the files hold, by kind: rows, findings, photos
Files that stop at their row limit
Files a handover package left out because they could not be built in time
EXPORT_REFUSED or EXPORT_FAILED
When the files go; 24 hours after the job is done
Download file n with getExportJobFile and file=n
A file of an export job.
object
Hex SHA-256 of the file
Example
{ "kind": "csv_topics", "status": "queued", "params": { "language": "fi" }}VALIDATION_ERROR for a malformed id or parameter
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}Missing, malformed, expired or revoked token
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}INSUFFICIENT_SCOPE; INSUFFICIENT_PROJECT_ROLE below the role the kind needs; FEATURE_OFF for report_pdf where the organisation lacks the PDF report; PUBLIC_API_DISABLED
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}No such project or job
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}RATE_LIMITED; wait for Retry-After seconds
The error body of every /v1 answer of 400 or more.
object
A sentence for people; it may change
Part of the contract
What the code names, where it names something
The X-Request-Id of the call
Example generated
{ "error": "example", "code": "example", "details": "example", "request_id": "example"}