Skip to navigation

Create a topology record

Add a boundary, component, flow, control or threat the map is missing. The body is keyed on recordType. References to other records are record ids, and each must exist and not be excluded, or the request is refused with 422 and error: "unknown_reference".

The record is stored as asserted, attributed to the user or API key that made the request, and testing takes it into account from the next pentest.

Requires the inventory:add API key scope.

Authentication

AuthorizationBearer

A workspace API key, sent as Authorization: Bearer.

OR
x-api-keystring

A workspace API key, sent as x-api-key.

Request

This endpoint expects an object.
objectRequired
OR
objectRequired
OR
objectRequired
OR
objectRequired
OR
objectRequired

Response

The created record and its first version.
recordobject

A record of the map. Beyond these fields it carries those of its recordType: name, kind and, depending on the type, boundary, exposure, endpoints, tech, from, to, label, appliesTo, gaps, component, title, severity and so on. References to other records are record ids.

versioninteger
The version this write created.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error