POST
Import a bill of materials onto an asset

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Path Parameters

id
string<uuid>
required

Query Parameters

format
enum<string>

Declared format. Detected from the content when omitted.

Available options:
cyclonedx,
spdx

Body

application/json

A CycloneDX 1.5 or SPDX 2.3 document.

The body is of type object.

Response

The provenance record and what was applied. 200 rather than 201: an import corrects an asset's inventory rather than creating a resource at a new location.

The response is of type object.