EndpunkteInventory structureInventory typesKey
Update or restore an inventory type
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
Requires an authenticated administrator browser session. The stable type key is immutable.
adminSessioncookie
authjs.session-token<token>Authenticated Auth.js browser session cookie; each operation declares its required permission. Not restricted to administrators. HTTPS deployments use the secure-prefixed cookie variant.
key*stringStable key of an administrator-configurable inventory type.
Muster
^[a-z][a-z0-9_-]{0,63}$Länge
1 <= length <= 64X-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
Eigenschaften
1 <= propertieslabel?stringLänge
1 <= length <= 120description?stringLänge
length <= 5000color?stringLänge
1 <= length <= 32icon?stringLänge
1 <= length <= 80canContain?booleanspatialContainment?booleanposition?integerBereich
0 <= value <= 100000archived?booleanArchive when true or restore when false.
Inventory type updated
application/json- response
type*curl -X PATCH 'https://inventory.example.com/api/v1/inventory-types/string' \ -H 'Content-Type: application/json' \ -d '{}'Beispielantwort
{ "type": { "key": "string", "label": "string", "description": "string", "color": "string", "icon": "string", "canContain": true, "spatialContainment": true, "position": 0, "isSystem": true, "createdBy": "string", "updatedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "archivedAt": "2019-08-24T14:15:22Z" }}