Open Inventory / Docs
EndpunkteAssignmentsResourcesIdLending

Enable or configure loans for an inventory 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.

PATCH
/resources/{id}/lending

Authentifizierung

bearerAuth
headerAuthentifizierungBearer <inv_ token>

Pfadparameter

id*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
enabled*boolean
approvalRequired*boolean
defaultDurationDays*integer
Bereich1 <= value <= 3650
maxDurationDays*integer
Bereich1 <= value <= 3650

Antwortinhalt

Lending policy updated

Beispielanfrage
curl -X PATCH 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/lending' \  -H 'Content-Type: application/json' \  -d '{  "enabled": true,  "approvalRequired": true,  "defaultDurationDays": 1,  "maxDurationDays": 1}'
Beispielantwort
Leer