Skip to main content

Export auto

Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.

Tag: export-auto · 6 operations

GET /v1/export/{tenant_slug}/auto-export-runs​

List auto-export runs

What each publish's auto-exports did, newest first: the export job, the loss it measured, whether delivery was halted, and every delivery's outcome. projectId or subscriptionId narrow. Requires projects:view.

Operation id: list_auto_export_runs_v1_export__tenant_slug__auto_export_runs_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
projectIdquerystring or nullnoQuery parameter: project id.
subscriptionIdquerystring or nullnoQuery parameter: subscription id.
limitqueryintegernoMaximum number of rows to return.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list auto-export runs.application/json AutoExportRunListResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/export/{tenant_slug}/auto-export-runs/{run_id}/release​

Deliver a halted auto-export anyway

Delivers a halted auto-export through its preset's delivery profile, as the caller, while the export's artifact is retained. Requires versions:publish; audited as export.auto_export.released. 409 when the run is not halted or the preset names no delivery profile; 410 when the artifact has expired.

Operation id: release_auto_export_run_v1_export__tenant_slug__auto_export_runs__run_id__release_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
run_idpathstringyesPath parameter identifying the run id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for deliver a halted auto-export anyway.application/json AutoExportRunModel
404Unknown run for this tenant.—
409Not halted, or nothing to deliver with.—
410The export's artifact has expired.—
422Validation Errorapplication/json HTTPValidationError

GET /v1/export/{tenant_slug}/auto-exports​

List auto-export subscriptions

Every export preset run on publish, by project. projectId or preset (id or name) narrow. At most 1,000 a page: pass the previous page's nextCursor as cursor until hasMore is false. Requires projects:view.

Operation id: list_auto_exports_v1_export__tenant_slug__auto_exports_get

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
projectIdquerystring or nullnoQuery parameter: project id.
presetquerystring or nullnoQuery parameter: preset.
limitqueryintegernoPage size. At most 1000.
cursorquerystring or nullnoOpaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
200Successful response for list auto-export subscriptions.application/json AutoExportSubscriptionListResponse
422Validation Errorapplication/json HTTPValidationError

POST /v1/export/{tenant_slug}/auto-exports​

Run an export preset on every publish of a project

Subscribes an export preset (by id or name) to a project: every later publish runs the preset's export on the published version and delivers it through the preset's delivery profile — unless the export's loss reaches haltAt (critical, the default: a severe or near-empty conversion, a types-only result or any critical construct; warn: any loss). A halted export is not delivered; the publisher and the subscriber are notified, and a person can release it. approveLoss pre-approves the loss: the export is delivered anyway. Requires projects:edit and versions:publish; audited as export.auto_export.subscription.created. 400 for an unknown project or preset; 409 when the project already runs that preset.

Operation id: create_auto_export_v1_export__tenant_slug__auto_exports_post

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for run an export preset on every publish of a project.

Responses

StatusDescriptionBody
201Successful response for run an export preset on every publish of a project.application/json AutoExportSubscriptionModel
400Unknown project or preset.—
409The project already runs that preset on publish.—
422Validation Errorapplication/json HTTPValidationError

PATCH /v1/export/{tenant_slug}/auto-exports/{subscription_id}​

Change an auto-export subscription

Changes haltAt, approveLoss or active. Turning a subscription on or pre-approving loss requires versions:publish as well as projects:edit. Audited as export.auto_export.subscription.updated.

Operation id: update_auto_export_v1_export__tenant_slug__auto_exports__subscription_id__patch

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
subscription_idpathstringyesPath parameter identifying the subscription id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Request body (required)

Request body for change an auto-export subscription.

Responses

StatusDescriptionBody
200Successful response for change an auto-export subscription.application/json AutoExportSubscriptionModel
404Unknown subscription for this tenant.—
422Validation Errorapplication/json HTTPValidationError

DELETE /v1/export/{tenant_slug}/auto-exports/{subscription_id}​

Remove an auto-export subscription

Stops running the preset on publish. Its past runs keep their record. Requires projects:edit; audited as export.auto_export.subscription.deleted.

Operation id: delete_auto_export_v1_export__tenant_slug__auto_exports__subscription_id__delete

Parameters

NameInTypeRequiredDescription
tenant_slugpathstringyesURL-safe tenant slug that scopes the request.
subscription_idpathstringyesPath parameter identifying the subscription id segment.
authorizationheaderstring or nullnoJWT bearer token for authenticated access (Authorization: Bearer <token>).
X-API-Keyheaderstring or nullnoTenant-scoped API key used as an alternative to JWT bearer authentication.

Responses

StatusDescriptionBody
204Successful response for remove an auto-export subscription.—
404Unknown subscription for this tenant.—
422Validation Errorapplication/json HTTPValidationError

Schemas used​

AutoExportRunListResponse​

Auto-export runs, newest first.

PropertyTypeRequiredDescription
runsarray of AutoExportRunModelnoRuns.

AutoExportRunModel​

One auto-export: a publish × a subscription.

Attributes: status: pending, running, delivered, exported (no delivery profile), halted (the loss reached haltAt: nothing delivered, people notified), delivery_failed or failed. loss_severity: The loss the export measured: info, warn or critical. loss_reasons: Why, one line per target. deliveries: Each delivery's outcome.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
projectIdstringyesProject ID.
projectNamestring or nullnoProject Name.
versionRecordIdstringyesVersion Record ID.
subscriptionIdstring or nullnoSubscription ID.
presetIdstring or nullnoPreset ID.
presetNamestringyesPreset Name.
haltAtstringyesHalt At.
approveLossbooleanyesApprove Loss.
statusstringyesStatus.
jobIdstring or nullnoJob ID.
lossSeveritystring or nullnoLoss Severity.
lossReasonsarray of stringnoLoss Reasons.
deliveriesarray of objectnoDeliveries.
errorCodestring or nullnoError Code.
errorMessagestring or nullnoError Message.
publishedBystring or nullnoPublished By.
releasedBystring or nullnoReleased By.
releasedAtstring (date-time) or nullnoReleased At.
createdAtstring (date-time) or nullnoCreated At.
finishedAtstring (date-time) or nullnoFinished At.

AutoExportSubscriptionCreate​

Subscribe a preset to a project's publishes: POST /v1/export/{tenant}/auto-exports.

PropertyTypeRequiredDescription
projectIdstringyesThe project whose publishes trigger the export.
presetstringyesThe export preset (MFX-39.3), by id or name.
haltAtenum "warn", "critical"noHalt auto-delivery when the export's loss reaches this severity: critical (default) for a severe or near-empty conversion, a types-only result or any critical construct; warn for any loss at all.
approveLossbooleannoPre-approve the loss: deliver even when it reaches haltAt. Recorded on every run.
activebooleannoWhether publishes trigger it.

AutoExportSubscriptionListResponse​

Auto-export subscriptions.

PropertyTypeRequiredDescription
subscriptionsarray of AutoExportSubscriptionModelnoSubscriptions.
hasMorebooleannoHas More.
nextCursorstring or nullnoNext Cursor.

AutoExportSubscriptionModel​

An export preset subscribed to a project's publishes.

PropertyTypeRequiredDescription
idstringyesStable resource identifier.
projectIdstringyesProject ID.
projectNamestring or nullnoProject Name.
presetIdstringyesPreset ID.
presetNamestring or nullnoPreset Name.
haltAtstringyeswarn or critical.
approveLossbooleanyesApprove Loss.
activebooleanyesActive.
createdAtstring (date-time) or nullnoCreated At.
updatedAtstring (date-time) or nullnoUpdated At.
createdBystring or nullnoCreated By.

AutoExportSubscriptionUpdate​

A change to a subscription: PATCH /v1/export/{tenant}/auto-exports/{id}.

PropertyTypeRequiredDescription
haltAtenum "warn", "critical" or nullnoHalt At.
approveLossboolean or nullnoApprove Loss.
activeboolean or nullnoActive.

HTTPValidationError​

Validation error response emitted when request data fails schema checks.

PropertyTypeRequiredDescription
detailarray of ValidationErrornoDetail.