Skip to main content
POST
Send a corrected roof for an export

Authorizations

Authorization
string
header
required

Send your API key as a bearer token: Authorization: Bearer osa_live_…. Keys are opaque; each belongs to exactly one partner. Keys starting with osa_test_ reach only test claims and test accounts. The scopes listed on each operation are the permissions the key needs. A key's permissions are set when it is issued and can be changed by OSA on request, never beyond what your plan and add-ons include. GET /v1/me always shows the current set.

Scopes

esx-exports:create

Headers

Idempotency-Key
string
required

A unique value your system generates for each operation, such as a UUID. Reuse the same value only when retrying the same request. The key is matched with a fingerprint of the whole request: method, path and body. For 24 hours, a retry of the same request with the same key returns the same status code with the resource's current state, and creates nothing new; the same key with a different request fails with 422 idempotency_key_reused.

Required string length: 1 - 255

Path Parameters

id
string<uuid>
required

OSA's export id, as returned in the export's id.

Body

application/json

The corrected roof, and the property only if it changed.

A corrected roof for an existing export, and the property only if it changed.

input
object
required

A roof, in OSA's roof format version 1 (osa-roof/1): one or more roofs as seen from above, with enough to build each in three dimensions. You are responsible for the roof being right. OSA checks it: a roof that cannot be built is refused with exact reasons, and any other problem is a warning, with the roof built anyway. Lengths and areas are not sent: OSA works them out from the points and the faces' pitches. Ids everywhere are 1 to 64 letters, digits, -, _ or ., unique within their list; problems name them.

Example:
property
object

The property the roof is on.

Response

The corrected roof was recorded and sent to the export provider. As for POST /v1/esx-exports: the export is usually processing, or already failed with reason build_refused if the provider refused the file outright. A retry with the same Idempotency-Key returns 202 again with the export's current state.

An export: the roof you sent, on its way to becoming an ESX. warnings, major_warnings, minor_warnings, clean, provider_messages and failure describe the latest version only; version says which.

id
string<uuid>
required

OSA's id for the export.

reference
string
required

Your own id for the order.

test
boolean
required

true for a test export, one sent with a test key: built on a test system and never charged. The value never changes. A key sees only exports of its own environment, so the field matters only if you store exports from both keys.

status
enum<string>
required

processing: received and on its way through the build. ready: the ESX can be asked for. failed: not built; failure says why. Open list: new values may be added; treat an unknown value as processing.

Available options:
processing,
ready,
failed
failure
object | null
required

Why the latest version was not built. null unless status is failed.

clean
boolean
required

true when the latest version has no warnings.

major_warnings
integer
required

The exact number of major warnings on the latest version.

Required range: x >= 0
minor_warnings
integer
required

The exact number of minor warnings on the latest version.

Required range: x >= 0
warnings
object[]
required

The latest version's warnings, each with its severity and what OSA did about it. At most 100; the two counts are exact. When there are more than 100, it holds the major ones first, then the minor ones, in check order. Never contains a problem of severity error.

Maximum array length: 100
provider_messages
string[]
required

What the export provider said about the latest version's file when it took it. Usually empty. Free text for people, in the export provider's own words, which may name the provider's products; do not parse it. It does not affect clean.

version
integer
required

The version of the roof the export is built from. 1 until you send a corrected roof.

Required range: x >= 1
created_at
string<date-time>
required

When the export was created.

updated_at
string<date-time>
required

When the export last changed: it moves when the export is created, when its status changes, when a new version is accepted, and when its ESX is first asked for. This is the field updated_since filters on.

ready_at
string<date-time> | null
required

When the latest version became ready; null until then.

first_downloaded_at
string<date-time> | null
required

When the ESX was first asked for; null until then.

claim_number
string | null
required

The carrier's claim number, as you sent it; null if you sent none.

end_user
object | null
required

Who in your system asked for the export, as you sent it; null if you sent none.

metadata
object
required

Your own key-value pairs, as you sent them; empty if you sent none.