Create a stock scan workflow
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.
bearerAuthAuthentifizierungBearer <inv_ token>X-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.
uuidapplication/json- body
actions?array<||||||>Ordered action list. Empty preserves the legacy operation. Results may reference only earlier actions. At least one action must be enabled.
items <= 24[]oncePerCode?booleanDeduplicate workflow + extracted identifier + selected target set, even with a new execution key.
falsename*string1 <= length <= 160description?stringlength <= 5000""enabled?booleantrueresourceId*stringuuidcodeTypes?array<>1 <= items[ "qr_code", "data_matrix", "aztec", "pdf417", "code_128", "code_93", "code_39", "codabar", "ean_13", "ean_8", "upc_a", "upc_e", "itf"]publicTriggerEnabled?booleanfalsepublicTriggerCode?|Optional fixed code used by the public URL; when null the public form asks for a code.
1 <= length <= 2048quantityInputKey?|Required number input whose positive integer value replaces the configured operation magnitude.
^[A-Za-z0-9_.-]+$1 <= length <= 80extraction*|||identifierPropertyKey*string^[A-Za-z0-9_.-]+$1 <= length <= 80identifierStorage?string"metadata""custom-field""metadata""execution"extractedFields?array<>items <= 24[]operation?||createMissingUnit?booleanfalseunitStatus?|nullfixedProperties?array<>items <= 24inputFields?array<>items <= 24triggerWebhook?booleanfalsewebhookEventName?string1 <= length <= 120"inventory.action.executed"Workflow created
application/json- response
workflow*curl -X POST 'https://inventory.example.com/api/v1/stock/scan-workflows' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "extraction": { "mode": "full" }, "identifierPropertyKey": "string"}'{ "workflow": { "actions": [], "oncePerCode": false, "name": "string", "description": "", "enabled": true, "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6", "codeTypes": [ "qr_code", "data_matrix", "aztec", "pdf417", "code_128", "code_93", "code_39", "codabar", "ean_13", "ean_8", "upc_a", "upc_e", "itf" ], "publicTriggerEnabled": false, "publicTriggerCode": "string", "quantityInputKey": "string", "extraction": { "mode": "full" }, "identifierPropertyKey": "string", "identifierStorage": "custom-field", "extractedFields": [], "operation": { "type": "unit" }, "createMissingUnit": false, "unitStatus": "available", "fixedProperties": [ { "key": "string", "label": "string", "value": "string", "storage": "custom-field" } ], "inputFields": [ { "visibleWhen": { "mode": "all", "rules": [ { "left": { "source": "literal", "value": "string" }, "operator": "equals", "right": { "source": "literal", "value": "string" } } ] }, "key": "string", "label": "string", "required": true, "type": "text", "storage": "custom-field", "placeholder": "", "options": [] } ], "triggerWebhook": false, "webhookEventName": "inventory.action.executed", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "publicTriggerId": "df54c35d-9bab-440a-ba65-bab9b848a308", "revision": 1, "createdBy": "string", "updatedBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}