Open Inventory / Docs
EndpointsAssignmentsResourcesIdLending

Enable or configure loans for an inventory item

The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.

PATCH
/resources/{id}/lending

Authorization

bearerAuth
headerAuthorizationBearer <inv_ token>

Path Parameters

id*string
Formatuuid

Header Parameters

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

Request Body

application/json
  1. body
enabled*boolean
approvalRequired*boolean
defaultDurationDays*integer
Range1 <= value <= 3650
maxDurationDays*integer
Range1 <= value <= 3650

Response Body

Lending policy updated

Example Request
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}'
Example Response
Empty