Open Inventory / Docs
EndpunkteAiResourcesIdImage

Find a reusable web image or generate a new AI image and append it to an item

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.

POST
/resources/{id}/image

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

id*string
Formatuuid

Header-Parameter

Idempotency-Key?string

UUID identifying one queue operation; safe to reuse for retries.

Formatuuid
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
mode*string
query?string

Optional brand, model, or exact-item search hint. Saved item details are always included.

Länge1 <= length <= 500

Antwortinhalt

Image imported or generated, appended to the item, or completed response replayed

Beispielanfrage
curl -X POST 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/image' \  -H 'Content-Type: application/json' \  -d '{  "mode": "search"}'
Beispielantwort
Leer