contracts

Submit Bulk Export Job

Create a bulk-export job. Returns {"job_id": "<uuid>"}.

Scope asset is rejected here: single-asset exports use the sync endpoint and carrying that path through a job would add latency for no benefit.

post/api/v1/contracts/export-jobs

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/contracts/export-jobs
  • Auth: none declared

Headers

Authorizationstring

Request body

scope'asset' | 'assets' | 'warehouse' | 'all' required

Asset-selection scope. Matches the wire names from TECH-976.

ASSET is listed for completeness so the job handler can reject it with a clear error, pointing callers at the sync single-asset endpoint.

ASSETS takes an explicit list of asset public ids; it is the scope the UI picks when the user checks rows in the asset list.

scope_namestring nullable
asset_public_idsstring[] nullable
modestring
includestring[] nullable
excludestring[] nullable

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.