/hardware-toolboxes-post-one¶
Summary¶
Source repository:
jef-systems/jef-hardware-backendSource SHA:
6918c62d0c8ccc1607753fba44a2be9f4c151341Source run id:
25960262208Lambda function:
jef-hardware-toolboxes-post-oneHTTP method:
POSTAPI path:
/hardware-toolboxes-post-oneEndpoint URL:
https://5g667fp458.execute-api.ap-southeast-1.amazonaws.com/prod/hardware-toolboxes-post-onePayload mode:
json-body
Description¶
Function: jef-hardware-toolboxes-post-oneModule: jef-hardwareAction: post-oneMethod: POSTInvocation Mode: ASYNCResource Path: /hardware-toolboxes-post-oneTable: jef-hardware-toolboxesPrimary Key: toolbox_id
API Gateway Response¶
status\_code: 202message: Request accepted for asynchronous processing.
Payload Example¶
toolbox\_id: ccb00721-6479-4c14-be47-c021b95aa31astore\_id: f80b79c4-749b-4b6f-a851-d53715181f63entity\_number: value-001toolbox\_number: value-001toolbox\_code: value-001toolbox\_name: North Branch Kitequipment\_name: Mechanic Toolboxcategory: value-001daily\_rate: 1status: value-001created\_at: 2026-05-16T10:55:50Zupdated\_at: 2026-05-16T10:55:50Zis\_active: Trueis\_deleted: Truedeleted\_at: 2026-05-16T10:55:50Zidempotency\_key: value-001schema\_version: 1version: 1children.toolbox\_items\[0\].toolbox\_item\_id: e9b62191-d74a-4826-8c1b-88498d8e5dd4children.toolbox\_items\[0\].toolbox\_id: ccb00721-6479-4c14-be47-c021b95aa31achildren.toolbox\_items\[0\].store\_id: f80b79c4-749b-4b6f-a851-d53715181f63children.toolbox\_items\[0\].entity\_number: value-001children.toolbox\_items\[0\].toolbox\_number: value-001children.toolbox\_items\[0\].line\_number: 1children.toolbox\_items\[0\].item\_name: Pipe Wrenchchildren.toolbox\_items\[0\].item\_code: value-001children.toolbox\_items\[0\].item\_category: value-001children.toolbox\_items\[0\].quantity: 1children.toolbox\_items\[0\].unit: value-001children.toolbox\_items\[0\].status: value-001children.toolbox\_items\[0\].created\_at: 2026-05-16T10:55:50Zchildren.toolbox\_items\[0\].updated\_at: 2026-05-16T10:55:50Zchildren.toolbox\_items\[0\].is\_active: Truechildren.toolbox\_items\[0\].is\_deleted: Truechildren.toolbox\_items\[0\].deleted\_at: 2026-05-16T10:55:50Zchildren.toolbox\_items\[0\].idempotency\_key: value-001children.toolbox\_items\[0\].schema\_version: 1children.toolbox\_items\[0\].version: 1
Payload Schema¶
{
"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¶
{
"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¶
{
"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": "North Branch Kit",
"equipment_name": "Mechanic Toolbox",
"category": "value-001",
"daily_rate": "1",
"status": "value-001",
"created_at": "2026-05-16T10:55:50Z",
"updated_at": "2026-05-16T10:55:50Z",
"is_active": "True",
"is_deleted": "True",
"deleted_at": "2026-05-16T10:55:50Z",
"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].entity_number": "value-001",
"children.toolbox_items[0].toolbox_number": "value-001",
"children.toolbox_items[0].line_number": "1",
"children.toolbox_items[0].item_name": "Pipe Wrench",
"children.toolbox_items[0].item_code": "value-001",
"children.toolbox_items[0].item_category": "value-001",
"children.toolbox_items[0].quantity": "1",
"children.toolbox_items[0].unit": "value-001",
"children.toolbox_items[0].status": "value-001",
"children.toolbox_items[0].created_at": "2026-05-16T10:55:50Z",
"children.toolbox_items[0].updated_at": "2026-05-16T10:55:50Z",
"children.toolbox_items[0].is_active": "True",
"children.toolbox_items[0].is_deleted": "True",
"children.toolbox_items[0].deleted_at": "2026-05-16T10:55:50Z",
"children.toolbox_items[0].idempotency_key": "value-001",
"children.toolbox_items[0].schema_version": "1",
"children.toolbox_items[0].version": "1"
}
Response¶
{
"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¶
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\": \"value-001\", \"toolbox_number\": \"value-001\", \"toolbox_code\": \"value-001\", \"toolbox_name\": \"North Branch Kit\", \"equipment_name\": \"Mechanic Toolbox\", \"category\": \"value-001\", \"daily_rate\": 1, \"status\": \"value-001\", \"created_at\": \"2026-05-16T10:55:50Z\", \"updated_at\": \"2026-05-16T10:55:50Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-16T10:55:50Z\", \"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\", \"entity_number\": \"value-001\", \"toolbox_number\": \"value-001\", \"line_number\": 1, \"item_name\": \"Pipe Wrench\", \"item_code\": \"value-001\", \"item_category\": \"value-001\", \"quantity\": 1, \"unit\": \"value-001\", \"status\": \"value-001\", \"created_at\": \"2026-05-16T10:55:50Z\", \"updated_at\": \"2026-05-16T10:55:50Z\", \"is_active\": true, \"is_deleted\": true, \"deleted_at\": \"2026-05-16T10:55:50Z\", \"idempotency_key\": \"value-001\", \"schema_version\": 1, \"version\": 1}]}}"
PowerShell curl¶
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": "value-001", "toolbox_number": "value-001", "toolbox_code": "value-001", "toolbox_name": "North Branch Kit", "equipment_name": "Mechanic Toolbox", "category": "value-001", "daily_rate": 1, "status": "value-001", "created_at": "2026-05-16T10:55:50Z", "updated_at": "2026-05-16T10:55:50Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-16T10:55:50Z", "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", "entity_number": "value-001", "toolbox_number": "value-001", "line_number": 1, "item_name": "Pipe Wrench", "item_code": "value-001", "item_category": "value-001", "quantity": 1, "unit": "value-001", "status": "value-001", "created_at": "2026-05-16T10:55:50Z", "updated_at": "2026-05-16T10:55:50Z", "is_active": true, "is_deleted": true, "deleted_at": "2026-05-16T10:55:50Z", "idempotency_key": "value-001", "schema_version": 1, "version": 1}]}}'