Open Inventory / Docs
EndpunkteSpatial roomsRoom scansScanidPlacementsResourceid

Create or replace an item's current indoor 3D placement

Die API läuft auf deiner Anwendungsinstanz. Schemas und Feldnamen stammen unverändert aus der OpenAPI-Spezifikation. Browsergebundene Aufrufe benötigen eine Sitzung auf der Instanz.

PUT
/room-scans/{scanId}/placements/{resourceId}

The scan must still be the active revision. Coordinates use its ARKit world frame in metres.

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

scanId*string
Formatuuid
resourceId*string
Formatuuid

Header-Parameter

X-Organization-ID?string

Organization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.

Formatuuid

Anfrageinhalt

application/json
  1. body
position*array<>

XYZ values in metres.

Einträge3 <= items <= 3
orientation*array<>

Normalized XYZW quaternion.

Einträge4 <= items <= 4
extent?array<>
Einträge3 <= items <= 3
confidence*number
Bereich0 <= value <= 1
method*string
Mögliche Werte"scene-depth""mesh-raycast""plane-raycast""manual"
anchorIdentifier?string
Formatuuid
capturedAt*string
Formatdate-time
localizationEvidence?

Antwortinhalt

Placement saved

Beispielanfrage
curl -X PUT 'https://inventory.example.com/api/v1/room-scans/497f6eca-6276-4993-bfeb-53cbbbba6f08/placements/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "position": [    -10000,    -10000,    -10000  ],  "orientation": [    -1,    -1,    -1,    -1  ],  "confidence": 0,  "method": "scene-depth",  "capturedAt": "2019-08-24T14:15:22Z"}'
Beispielantwort
Leer