EndpunkteInventory cyclesResourcesIdInventory cycle
Create or replace an item's recurring count policy
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
bearerAuthheader
AuthentifizierungBearer <inv_ token>id*stringFormat
uuidX-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
intervalDays*integerBereich
1 <= value <= 3650enabled?booleanStandard
trueInventory cycle policy saved
application/json- response
policy*curl -X PUT 'https://inventory.example.com/api/v1/resources/497f6eca-6276-4993-bfeb-53cbbbba6f08/inventory-cycle' \ -H 'Content-Type: application/json' \ -d '{ "intervalDays": 1}'Beispielantwort
{ "policy": { "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "intervalDays": 1, "enabled": true, "nextDueAt": "2019-08-24T14:15:22Z", "lastCompletedAt": "2019-08-24T14:15:22Z", "createdBy": "string", "updatedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}