.. AUTO-GENERATED FILE. DO NOT EDIT. /caferimo-manual-inventory-logs-patch-one ========================================= Summary ------- - **Source repository:** ``jef-systems/jef-caferimo-backend`` - **Source SHA:** ``34df92c8234ac60ec26994914058345ef85bfdf5`` - **Source run id:** ``26559419681`` - **Lambda function:** ``jef-caferimo-manual-inventory-logs-patch-one`` - **HTTP method:** ``PATCH`` - **API path:** ``/caferimo-manual-inventory-logs-patch-one`` - **Endpoint URL:** ``https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-manual-inventory-logs-patch-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-caferimo-manual-inventory-logs-patch-one - ``Module``: jef-caferimo - ``Action``: patch-one - ``Method``: PATCH - ``Invocation Mode``: ASYNC - ``Resource Path``: /caferimo-manual-inventory-logs-patch-one - ``Table``: jef-caferimo-manual-inventory-logs - ``Primary Key``: manual\_inventory\_log\_id API Gateway Response -------------------- - ``status\_code``: 202 - ``message``: Request accepted for asynchronous processing. Payload Example --------------- - ``manual\_inventory\_log\_id``: 19510051-54bc-47e7-a08d-88d59162f71a - ``store\_id``: 167ec01f-2aae-4482-902d-61c36b19b0d4 - ``entity\_number``: value-001 - ``inventory\_date``: 2026-05-28 - ``counted\_by``: Ramon Santos - ``created``: 2026-05-28T06:42:09Z - ``updated``: 2026-05-28T06:42:09Z - ``children.inventory\_items\[0\].inventory\_item\_id``: eaa1aba3-ce97-48e2-8e1b-94ba2f112914 - ``children.inventory\_items\[0\].manual\_inventory\_log\_id``: 19510051-54bc-47e7-a08d-88d59162f71a - ``children.inventory\_items\[0\].store\_id``: 167ec01f-2aae-4482-902d-61c36b19b0d4 - ``children.inventory\_items\[0\].entity\_number``: value-001 - ``children.inventory\_items\[0\].inventory\_item\_number``: value-001 - ``children.inventory\_items\[0\].inventory\_item\_name``: Brew Beans - ``children.inventory\_items\[0\].category``: value-001 - ``children.inventory\_items\[0\].unit``: value-001 - ``children.inventory\_items\[0\].counted\_quantity``: 1 - ``children.inventory\_items\[0\].low\_stock\_alert\_value``: 1 - ``children.inventory\_items\[0\].full\_stock\_alert\_value``: 1 - ``children.inventory\_items\[0\].stock\_alert\_status``: value-001 - ``children.inventory\_items\[0\].created``: 2026-05-28T06:42:09Z - ``children.inventory\_items\[0\].updated``: 2026-05-28T06:42:09Z Payload Schema -------------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.manual_inventory_log_id.type": "S", "root.attributes.manual_inventory_log_id.required": "True", "root.attributes.manual_inventory_log_id.format": "uuidv4", "root.attributes.manual_inventory_log_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "root.attributes.store_id.type": "S", "root.attributes.store_id.required": "False", "root.attributes.store_id.format": "uuidv4", "root.attributes.store_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "root.attributes.entity_number.type": "S", "root.attributes.entity_number.required": "False", "root.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.inventory_date.type": "S", "root.attributes.inventory_date.required": "False", "root.attributes.inventory_date.regex": "^\\d{4}-\\d{2}-\\d{2}$", "root.attributes.counted_by.type": "S", "root.attributes.counted_by.required": "False", "root.attributes.counted_by.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.created.type": "S", "root.attributes.created.required": "False", "root.attributes.created.format": "iso8601", "root.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.updated.type": "S", "root.attributes.updated.required": "False", "root.attributes.updated.format": "iso8601", "root.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.children.type": "M", "root.attributes.children.required": "False", "root.attributes.children.attributes.inventory_items.type": "L", "root.attributes.children.attributes.inventory_items.required": "False", "root.attributes.children.attributes.inventory_items.items.type": "M", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_id.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_id.required": "True", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_id.format": "uuidv4", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "root.attributes.children.attributes.inventory_items.items.attributes.manual_inventory_log_id.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.manual_inventory_log_id.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.manual_inventory_log_id.format": "uuidv4", "root.attributes.children.attributes.inventory_items.items.attributes.manual_inventory_log_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "root.attributes.children.attributes.inventory_items.items.attributes.store_id.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.store_id.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.store_id.format": "uuidv4", "root.attributes.children.attributes.inventory_items.items.attributes.store_id.regex": "^[1-9a-fA-F][0-9a-fA-F]{7}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", "root.attributes.children.attributes.inventory_items.items.attributes.entity_number.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.entity_number.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_number.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_number.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_name.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_name.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.inventory_item_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.children.attributes.inventory_items.items.attributes.category.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.category.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.category.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_items.items.attributes.unit.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.unit.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.unit.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_items.items.attributes.counted_quantity.type": "N", "root.attributes.children.attributes.inventory_items.items.attributes.counted_quantity.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.counted_quantity.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.inventory_items.items.attributes.low_stock_alert_value.type": "N", "root.attributes.children.attributes.inventory_items.items.attributes.low_stock_alert_value.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.low_stock_alert_value.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.inventory_items.items.attributes.full_stock_alert_value.type": "N", "root.attributes.children.attributes.inventory_items.items.attributes.full_stock_alert_value.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.full_stock_alert_value.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.inventory_items.items.attributes.stock_alert_status.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.stock_alert_status.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.stock_alert_status.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.inventory_items.items.attributes.created.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.created.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.created.format": "iso8601", "root.attributes.children.attributes.inventory_items.items.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.children.attributes.inventory_items.items.attributes.updated.type": "S", "root.attributes.children.attributes.inventory_items.items.attributes.updated.required": "False", "root.attributes.children.attributes.inventory_items.items.attributes.updated.format": "iso8601", "root.attributes.children.attributes.inventory_items.items.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$" } Response Schema --------------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.is_accepted.type": "BOOL", "root.attributes.is_accepted.required": "True", "root.attributes.message.type": "S", "root.attributes.message.required": "True", "root.attributes.request_id.type": "S", "root.attributes.request_id.required": "False" } Request Payload --------------- .. code-block:: json { "manual_inventory_log_id": "19510051-54bc-47e7-a08d-88d59162f71a", "store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4", "entity_number": "value-001", "inventory_date": "2026-05-28", "counted_by": "Ramon Santos", "created": "2026-05-28T06:42:09Z", "updated": "2026-05-28T06:42:09Z", "children.inventory_items[0].inventory_item_id": "eaa1aba3-ce97-48e2-8e1b-94ba2f112914", "children.inventory_items[0].manual_inventory_log_id": "19510051-54bc-47e7-a08d-88d59162f71a", "children.inventory_items[0].store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4", "children.inventory_items[0].entity_number": "value-001", "children.inventory_items[0].inventory_item_number": "value-001", "children.inventory_items[0].inventory_item_name": "Brew Beans", "children.inventory_items[0].category": "value-001", "children.inventory_items[0].unit": "value-001", "children.inventory_items[0].counted_quantity": "1", "children.inventory_items[0].low_stock_alert_value": "1", "children.inventory_items[0].full_stock_alert_value": "1", "children.inventory_items[0].stock_alert_status": "value-001", "children.inventory_items[0].created": "2026-05-28T06:42:09Z", "children.inventory_items[0].updated": "2026-05-28T06:42:09Z" } Response -------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.is_accepted.type": "BOOL", "root.attributes.is_accepted.required": "True", "root.attributes.message.type": "S", "root.attributes.message.required": "True", "root.attributes.request_id.type": "S", "root.attributes.request_id.required": "False" } CMD curl -------- .. code-block:: bat curl -X PATCH "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-manual-inventory-logs-patch-one" -H "Content-Type: application/json" --data-raw "{\"manual_inventory_log_id\": \"19510051-54bc-47e7-a08d-88d59162f71a\", \"store_id\": \"167ec01f-2aae-4482-902d-61c36b19b0d4\", \"entity_number\": \"value-001\", \"inventory_date\": \"2026-05-28\", \"counted_by\": \"Ramon Santos\", \"created\": \"2026-05-28T06:42:09Z\", \"updated\": \"2026-05-28T06:42:09Z\", \"children\": {\"inventory_items\": [{\"inventory_item_id\": \"eaa1aba3-ce97-48e2-8e1b-94ba2f112914\", \"manual_inventory_log_id\": \"19510051-54bc-47e7-a08d-88d59162f71a\", \"store_id\": \"167ec01f-2aae-4482-902d-61c36b19b0d4\", \"entity_number\": \"value-001\", \"inventory_item_number\": \"value-001\", \"inventory_item_name\": \"Brew Beans\", \"category\": \"value-001\", \"unit\": \"value-001\", \"counted_quantity\": 1, \"low_stock_alert_value\": 1, \"full_stock_alert_value\": 1, \"stock_alert_status\": \"value-001\", \"created\": \"2026-05-28T06:42:09Z\", \"updated\": \"2026-05-28T06:42:09Z\"}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X PATCH "https://iim2eohqsl.execute-api.ap-southeast-1.amazonaws.com/prod/caferimo-manual-inventory-logs-patch-one" -H "Content-Type: application/json" --data-raw '{"manual_inventory_log_id": "19510051-54bc-47e7-a08d-88d59162f71a", "store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4", "entity_number": "value-001", "inventory_date": "2026-05-28", "counted_by": "Ramon Santos", "created": "2026-05-28T06:42:09Z", "updated": "2026-05-28T06:42:09Z", "children": {"inventory_items": [{"inventory_item_id": "eaa1aba3-ce97-48e2-8e1b-94ba2f112914", "manual_inventory_log_id": "19510051-54bc-47e7-a08d-88d59162f71a", "store_id": "167ec01f-2aae-4482-902d-61c36b19b0d4", "entity_number": "value-001", "inventory_item_number": "value-001", "inventory_item_name": "Brew Beans", "category": "value-001", "unit": "value-001", "counted_quantity": 1, "low_stock_alert_value": 1, "full_stock_alert_value": 1, "stock_alert_status": "value-001", "created": "2026-05-28T06:42:09Z", "updated": "2026-05-28T06:42:09Z"}]}}'