.. AUTO-GENERATED FILE. DO NOT EDIT. /hardware-toolboxes-post-one ============================ Summary ------- - **Source repository:** ``jef-systems/jef-hardware-backend`` - **Source SHA:** ``da55214e1c0cdc1f340e0eaca147285c336498dd`` - **Source run id:** ``25890110895`` - **Lambda function:** ``jef-hardware-toolboxes-post-one`` - **HTTP method:** ``POST`` - **API path:** ``/hardware-toolboxes-post-one`` - **Endpoint URL:** ``https://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-post-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-hardware-toolboxes-post-one - ``Module``: jef-hardware - ``Action``: post-one - ``Method``: POST - ``Invocation Mode``: ASYNC - ``Resource Path``: /hardware-toolboxes-post-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``: 1 - ``toolbox\_number``: 1 - ``toolbox\_code``: 1 - ``toolbox\_name``: 1 - ``equipment\_name``: 1 - ``category``: 1 - ``daily\_rate``: 1 - ``status``: 1 - ``created\_at``: 2026-05-14T22:43:20Z - ``updated\_at``: 2026-05-14T22:43:20Z - ``is\_active``: True - ``is\_deleted``: True - ``deleted\_at``: 2026-05-14T22:43:20Z - ``idempotency\_key``: 1 - ``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\].entity\_number``: 1 - ``children.toolbox\_items\[0\].toolbox\_number``: 1 - ``children.toolbox\_items\[0\].line\_number``: 1 - ``children.toolbox\_items\[0\].item\_name``: 1 - ``children.toolbox\_items\[0\].item\_code``: 1 - ``children.toolbox\_items\[0\].item\_category``: 1 - ``children.toolbox\_items\[0\].quantity``: 1 - ``children.toolbox\_items\[0\].unit``: 1 - ``children.toolbox\_items\[0\].status``: 1 - ``children.toolbox\_items\[0\].created\_at``: 2026-05-14T22:43:20Z - ``children.toolbox\_items\[0\].updated\_at``: 2026-05-14T22:43:20Z - ``children.toolbox\_items\[0\].is\_active``: True - ``children.toolbox\_items\[0\].is\_deleted``: True - ``children.toolbox\_items\[0\].deleted\_at``: 2026-05-14T22:43:20Z - ``children.toolbox\_items\[0\].idempotency\_key``: 1 - ``children.toolbox\_items\[0\].schema\_version``: 1 - ``children.toolbox\_items\[0\].version``: 1 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": "True", "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": "True", "root.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.toolbox_number.type": "S", "root.attributes.toolbox_number.required": "True", "root.attributes.toolbox_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.toolbox_code.type": "S", "root.attributes.toolbox_code.required": "True", "root.attributes.toolbox_code.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.toolbox_name.type": "S", "root.attributes.toolbox_name.required": "True", "root.attributes.toolbox_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.equipment_name.type": "S", "root.attributes.equipment_name.required": "True", "root.attributes.equipment_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.category.type": "S", "root.attributes.category.required": "True", "root.attributes.category.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.daily_rate.type": "N", "root.attributes.daily_rate.required": "True", "root.attributes.daily_rate.regex": "^-?\\d+(\\.\\d+)?$", "root.attributes.status.type": "S", "root.attributes.status.required": "True", "root.attributes.status.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.created_at.type": "S", "root.attributes.created_at.required": "True", "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": "True", "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": "True", "root.attributes.is_active.regex": "^(true|false)$", "root.attributes.is_deleted.type": "BOOL", "root.attributes.is_deleted.required": "True", "root.attributes.is_deleted.regex": "^(true|false)$", "root.attributes.deleted_at.type": "S", "root.attributes.deleted_at.required": "True", "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": "True", "root.attributes.idempotency_key.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.schema_version.type": "N", "root.attributes.schema_version.required": "True", "root.attributes.schema_version.regex": "^\\d+$", "root.attributes.version.type": "N", "root.attributes.version.required": "True", "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": "True", "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.entity_number.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.entity_number.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.entity_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_number.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_number.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.toolbox_number.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.line_number.type": "N", "root.attributes.children.attributes.toolbox_items.items.attributes.line_number.required": "True", "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": "True", "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": "True", "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": "True", "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": "True", "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": "True", "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": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.status.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.created_at.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.created_at.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.created_at.format": "iso8601", "root.attributes.children.attributes.toolbox_items.items.attributes.created_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.children.attributes.toolbox_items.items.attributes.updated_at.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.updated_at.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.updated_at.format": "iso8601", "root.attributes.children.attributes.toolbox_items.items.attributes.updated_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.children.attributes.toolbox_items.items.attributes.is_active.type": "BOOL", "root.attributes.children.attributes.toolbox_items.items.attributes.is_active.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.is_active.regex": "^(true|false)$", "root.attributes.children.attributes.toolbox_items.items.attributes.is_deleted.type": "BOOL", "root.attributes.children.attributes.toolbox_items.items.attributes.is_deleted.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.is_deleted.regex": "^(true|false)$", "root.attributes.children.attributes.toolbox_items.items.attributes.deleted_at.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.deleted_at.required": "True", "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?$", "root.attributes.children.attributes.toolbox_items.items.attributes.idempotency_key.type": "S", "root.attributes.children.attributes.toolbox_items.items.attributes.idempotency_key.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.idempotency_key.regex": "^[A-Za-z0-9_-]{1,64}$", "root.attributes.children.attributes.toolbox_items.items.attributes.schema_version.type": "N", "root.attributes.children.attributes.toolbox_items.items.attributes.schema_version.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.schema_version.regex": "^\\d+$", "root.attributes.children.attributes.toolbox_items.items.attributes.version.type": "N", "root.attributes.children.attributes.toolbox_items.items.attributes.version.required": "True", "root.attributes.children.attributes.toolbox_items.items.attributes.version.regex": "^\\d+$" } 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": "1", "toolbox_number": "1", "toolbox_code": "1", "toolbox_name": "1", "equipment_name": "1", "category": "1", "daily_rate": "1", "status": "1", "created_at": "2026-05-14T22:43:20Z", "updated_at": "2026-05-14T22:43:20Z", "is_active": "True", "is_deleted": "True", "deleted_at": "2026-05-14T22:43:20Z", "idempotency_key": "1", "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].entity_number": "1", "children.toolbox_items[0].toolbox_number": "1", "children.toolbox_items[0].line_number": "1", "children.toolbox_items[0].item_name": "1", "children.toolbox_items[0].item_code": "1", "children.toolbox_items[0].item_category": "1", "children.toolbox_items[0].quantity": "1", "children.toolbox_items[0].unit": "1", "children.toolbox_items[0].status": "1", "children.toolbox_items[0].created_at": "2026-05-14T22:43:20Z", "children.toolbox_items[0].updated_at": "2026-05-14T22:43:20Z", "children.toolbox_items[0].is_active": "True", "children.toolbox_items[0].is_deleted": "True", "children.toolbox_items[0].deleted_at": "2026-05-14T22:43:20Z", "children.toolbox_items[0].idempotency_key": "1", "children.toolbox_items[0].schema_version": "1", "children.toolbox_items[0].version": "1" } 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 POST "https://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-post-one" -H "Content-Type: application/json" --data-raw "{\"toolbox_id\": \"ccb00721-6479-4c14-be47-c021b95aa31a\", \"store_id\": \"f80b79c4-749b-4b6f-a851-d53715181f63\", \"entity_number\": \"1\", \"toolbox_number\": \"1\", \"toolbox_code\": \"1\", \"toolbox_name\": \"1\", \"equipment_name\": \"1\", \"category\": \"1\", \"daily_rate\": 1, \"status\": \"1\", \"created_at\": \"2026-05-14T22:43:20Z\", \"updated_at\": \"2026-05-14T22:43:20Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-14T22:43:20Z\", \"idempotency_key\": \"1\", \"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\", \"entity_number\": \"1\", \"toolbox_number\": \"1\", \"line_number\": 1, \"item_name\": \"1\", \"item_code\": \"1\", \"item_category\": \"1\", \"quantity\": 1, \"unit\": \"1\", \"status\": \"1\", \"created_at\": \"2026-05-14T22:43:20Z\", \"updated_at\": \"2026-05-14T22:43:20Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-14T22:43:20Z\", \"idempotency_key\": \"1\", \"schema_version\": 1, \"version\": 1}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-post-one" -H "Content-Type: application/json" --data-raw '{"toolbox_id": "ccb00721-6479-4c14-be47-c021b95aa31a", "store_id": "f80b79c4-749b-4b6f-a851-d53715181f63", "entity_number": "1", "toolbox_number": "1", "toolbox_code": "1", "toolbox_name": "1", "equipment_name": "1", "category": "1", "daily_rate": 1, "status": "1", "created_at": "2026-05-14T22:43:20Z", "updated_at": "2026-05-14T22:43:20Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-14T22:43:20Z", "idempotency_key": "1", "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", "entity_number": "1", "toolbox_number": "1", "line_number": 1, "item_name": "1", "item_code": "1", "item_category": "1", "quantity": 1, "unit": "1", "status": "1", "created_at": "2026-05-14T22:43:20Z", "updated_at": "2026-05-14T22:43:20Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-14T22:43:20Z", "idempotency_key": "1", "schema_version": 1, "version": 1}]}}'