.. AUTO-GENERATED FILE. DO NOT EDIT. /hardware-toolboxes-patch-one ============================= Summary ------- - **Source repository:** ``jef-systems/jef-hardware-backend`` - **Source SHA:** ``890931f40c2c41e18d31c3a0f2d179223722ceca`` - **Source run id:** ``26363092644`` - **Lambda function:** ``jef-hardware-toolboxes-patch-one`` - **HTTP method:** ``PATCH`` - **API path:** ``/hardware-toolboxes-patch-one`` - **Endpoint URL:** ``https://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-patch-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-hardware-toolboxes-patch-one - ``Module``: jef-hardware - ``Action``: patch-one - ``Method``: PATCH - ``Invocation Mode``: ASYNC - ``Resource Path``: /hardware-toolboxes-patch-one - ``Table``: jef-hardware-toolboxes - ``Primary Key``: toolbox\_id API Gateway Response -------------------- - ``status\_code``: 202 - ``message``: Request accepted for asynchronous processing. Payload Example --------------- - ``toolbox\_id``: ccb00721-6479-4c14-be47-c021b95aa31a - ``store\_id``: f80b79c4-749b-4b6f-a851-d53715181f63 - ``entity\_number``: value-001 - ``toolbox\_number``: value-001 - ``toolbox\_code``: value-001 - ``toolbox\_name``: Main Depot Toolbox - ``equipment\_name``: Ramon Santos - ``category``: value-001 - ``daily\_rate``: 1 - ``status``: value-001 - ``created\_at``: 2026-05-24T13:46:22Z - ``updated\_at``: 2026-05-24T13:46:22Z - ``is\_active``: True - ``is\_deleted``: True - ``deleted\_at``: 2026-05-24T13:46:22Z - ``idempotency\_key``: value-001 - ``schema\_version``: 1 - ``version``: 1 - ``children.toolbox\_items\[0\].toolbox\_item\_id``: e9b62191-d74a-4826-8c1b-88498d8e5dd4 - ``children.toolbox\_items\[0\].toolbox\_id``: ccb00721-6479-4c14-be47-c021b95aa31a - ``children.toolbox\_items\[0\].store\_id``: f80b79c4-749b-4b6f-a851-d53715181f63 - ``children.toolbox\_items\[0\].line\_number``: 1 - ``children.toolbox\_items\[0\].item\_name``: Socket Wrench Set - ``children.toolbox\_items\[0\].item\_code``: value-001 - ``children.toolbox\_items\[0\].item\_category``: hand\_tools - ``children.toolbox\_items\[0\].quantity``: 1 - ``children.toolbox\_items\[0\].unit``: value-001 - ``children.toolbox\_items\[0\].status``: value-001 - ``children.toolbox\_items\[0\].deleted\_at``: 2026-05-24T13:46:22Z Payload Schema -------------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.toolbox_id.type": "S", "root.attributes.toolbox_id.required": "True", "root.attributes.toolbox_id.format": "uuidv4", "root.attributes.toolbox_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.toolbox_number.type": "S", "root.attributes.toolbox_number.required": "False", "root.attributes.toolbox_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.toolbox_code.type": "S", "root.attributes.toolbox_code.required": "False", "root.attributes.toolbox_code.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.toolbox_name.type": "S", "root.attributes.toolbox_name.required": "False", "root.attributes.toolbox_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.equipment_name.type": "S", "root.attributes.equipment_name.required": "False", "root.attributes.equipment_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.category.type": "S", "root.attributes.category.required": "False", "root.attributes.category.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.daily_rate.type": "N", "root.attributes.daily_rate.required": "False", "root.attributes.daily_rate.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.status.type": "S", "root.attributes.status.required": "False", "root.attributes.status.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.created_at.type": "S", "root.attributes.created_at.required": "False", "root.attributes.created_at.format": "iso8601", "root.attributes.created_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.updated_at.type": "S", "root.attributes.updated_at.required": "False", "root.attributes.updated_at.format": "iso8601", "root.attributes.updated_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.is_active.type": "BOOL", "root.attributes.is_active.required": "False", "root.attributes.is_active.regex": "^(true|false)$", "root.attributes.is_deleted.type": "BOOL", "root.attributes.is_deleted.required": "False", "root.attributes.is_deleted.regex": "^(true|false)$", "root.attributes.deleted_at.type": "S", "root.attributes.deleted_at.required": "False", "root.attributes.deleted_at.format": "iso8601", "root.attributes.deleted_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.idempotency_key.type": "S", "root.attributes.idempotency_key.required": "False", "root.attributes.idempotency_key.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.schema_version.type": "N", "root.attributes.schema_version.required": "False", "root.attributes.schema_version.regex": "^\\d+$", "root.attributes.version.type": "N", "root.attributes.version.required": "False", "root.attributes.version.regex": "^\\d+$", "root.attributes.children.type": "M", "root.attributes.children.required": "False", "root.attributes.children.attributes.toolbox_items.type": "L", "root.attributes.children.attributes.toolbox_items.required": "False", "root.attributes.children.attributes.toolbox_items.items.type": "M", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_item_id.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_item_id.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_item_id.format": "uuidv4", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_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.toolbox_items.items.attributes.toolbox_id.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_id.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_id.format": "uuidv4", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_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.toolbox_items.items.attributes.store_id.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.store_id.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.store_id.format": "uuidv4", "root.attributes.children.attributes.toolbox_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.toolbox_items.items.attributes.line_number.type": "N", "root.attributes.children.attributes.toolbox_items.items.attributes.line_number.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.line_number.regex": "^\\d+$", "root.attributes.children.attributes.toolbox_items.items.attributes.item_name.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.item_name.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.item_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.children.attributes.toolbox_items.items.attributes.item_code.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.item_code.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.item_code.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.item_category.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.item_category.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.item_category.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.quantity.type": "N", "root.attributes.children.attributes.toolbox_items.items.attributes.quantity.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.quantity.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.children.attributes.toolbox_items.items.attributes.unit.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.unit.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.unit.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.status.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.status.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.status.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.deleted_at.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.deleted_at.required": "False", "root.attributes.children.attributes.toolbox_items.items.attributes.deleted_at.format": "iso8601", "root.attributes.children.attributes.toolbox_items.items.attributes.deleted_at.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 { "toolbox_id": "ccb00721-6479-4c14-be47-c021b95aa31a", "store_id": "f80b79c4-749b-4b6f-a851-d53715181f63", "entity_number": "value-001", "toolbox_number": "value-001", "toolbox_code": "value-001", "toolbox_name": "Main Depot Toolbox", "equipment_name": "Ramon Santos", "category": "value-001", "daily_rate": "1", "status": "value-001", "created_at": "2026-05-24T13:46:22Z", "updated_at": "2026-05-24T13:46:22Z", "is_active": "True", "is_deleted": "True", "deleted_at": "2026-05-24T13:46:22Z", "idempotency_key": "value-001", "schema_version": "1", "version": "1", "children.toolbox_items[0].toolbox_item_id": "e9b62191-d74a-4826-8c1b-88498d8e5dd4", "children.toolbox_items[0].toolbox_id": "ccb00721-6479-4c14-be47-c021b95aa31a", "children.toolbox_items[0].store_id": "f80b79c4-749b-4b6f-a851-d53715181f63", "children.toolbox_items[0].line_number": "1", "children.toolbox_items[0].item_name": "Socket Wrench Set", "children.toolbox_items[0].item_code": "value-001", "children.toolbox_items[0].item_category": "hand_tools", "children.toolbox_items[0].quantity": "1", "children.toolbox_items[0].unit": "value-001", "children.toolbox_items[0].status": "value-001", "children.toolbox_items[0].deleted_at": "2026-05-24T13:46:22Z" } 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://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-patch-one" -H "Content-Type: application/json" --data-raw "{\"toolbox_id\": \"ccb00721-6479-4c14-be47-c021b95aa31a\", \"store_id\": \"f80b79c4-749b-4b6f-a851-d53715181f63\", \"entity_number\": \"value-001\", \"toolbox_number\": \"value-001\", \"toolbox_code\": \"value-001\", \"toolbox_name\": \"Main Depot Toolbox\", \"equipment_name\": \"Ramon Santos\", \"category\": \"value-001\", \"daily_rate\": 1, \"status\": \"value-001\", \"created_at\": \"2026-05-24T13:46:22Z\", \"updated_at\": \"2026-05-24T13:46:22Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-24T13:46:22Z\", \"idempotency_key\": \"value-001\", \"schema_version\": 1, \"version\": 1, \"children\": {\"toolbox_items\": [{\"toolbox_item_id\": \"e9b62191-d74a-4826-8c1b-88498d8e5dd4\", \"toolbox_id\": \"ccb00721-6479-4c14-be47-c021b95aa31a\", \"store_id\": \"f80b79c4-749b-4b6f-a851-d53715181f63\", \"line_number\": 1, \"item_name\": \"Socket Wrench Set\", \"item_code\": \"value-001\", \"item_category\": \"hand_tools\", \"quantity\": 1, \"unit\": \"value-001\", \"status\": \"value-001\", \"deleted_at\": \"2026-05-24T13:46:22Z\"}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X PATCH "https://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-patch-one" -H "Content-Type: application/json" --data-raw '{"toolbox_id": "ccb00721-6479-4c14-be47-c021b95aa31a", "store_id": "f80b79c4-749b-4b6f-a851-d53715181f63", "entity_number": "value-001", "toolbox_number": "value-001", "toolbox_code": "value-001", "toolbox_name": "Main Depot Toolbox", "equipment_name": "Ramon Santos", "category": "value-001", "daily_rate": 1, "status": "value-001", "created_at": "2026-05-24T13:46:22Z", "updated_at": "2026-05-24T13:46:22Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-24T13:46:22Z", "idempotency_key": "value-001", "schema_version": 1, "version": 1, "children": {"toolbox_items": [{"toolbox_item_id": "e9b62191-d74a-4826-8c1b-88498d8e5dd4", "toolbox_id": "ccb00721-6479-4c14-be47-c021b95aa31a", "store_id": "f80b79c4-749b-4b6f-a851-d53715181f63", "line_number": 1, "item_name": "Socket Wrench Set", "item_code": "value-001", "item_category": "hand_tools", "quantity": 1, "unit": "value-001", "status": "value-001", "deleted_at": "2026-05-24T13:46:22Z"}]}}'