/one-entities-patch-one¶
Summary¶
Source repository:
jef-systems/jef-one-backendSource SHA:
cabdf720f0e0bb4038428358fd150f2f95c55ff8Source run id:
26362915503Lambda function:
jef-one-entities-patch-oneHTTP method:
PATCHAPI path:
/one-entities-patch-oneEndpoint URL:
https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-entities-patch-onePayload mode:
json-body
Description¶
Function: jef-one-entities-patch-oneModule: jef-oneAction: patch-oneMethod: PATCHInvocation Mode: ASYNCResource Path: /one-entities-patch-oneTable: jef-one-entitiesPrimary Key: entity_id
API Gateway Response¶
status\_code: 202message: Request accepted for asynchronous processing.
Payload Example¶
entity\_id: d49b8a8c-30d9-4172-bb72-71855d5804c2entity\_number: 1000entity\_name: North Branchis\_active: Truecreated\_at: 2026-05-24T13:38:18Zupdated\_at: 2026-05-24T13:38:18Zchildren.employees\[0\].employee\_id: 14c92d5d-daa7-4ea9-9507-dd366304dbf2children.employees\[0\].entity\_id: d49b8a8c-30d9-4172-bb72-71855d5804c2children.employees\[0\].entity\_number: 1000children.employees\[0\].employee\_number: 10000children.employees\[0\].display\_name: Ramon Santoschildren.employees\[0\].employee\_password\_hash: Sample text 001children.employees\[0\].is\_active: Truechildren.employees\[0\].created\_at: 2026-05-24T13:38:18Zchildren.employees\[0\].updated\_at: 2026-05-24T13:38:18Z
Payload Schema¶
{
"root.type": "M",
"root.required": "True",
"root.attributes.entity_id.type": "S",
"root.attributes.entity_id.required": "True",
"root.attributes.entity_id.format": "uuidv4",
"root.attributes.entity_id.regex": "^[0-9a-fA-F]{8}-[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": "^[0-9]{4}$",
"root.attributes.entity_name.type": "S",
"root.attributes.entity_name.required": "False",
"root.attributes.entity_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.is_active.type": "BOOL",
"root.attributes.is_active.required": "False",
"root.attributes.is_active.regex": "^(true|false)$",
"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.children.type": "M",
"root.attributes.children.required": "False",
"root.attributes.children.attributes.employees.type": "L",
"root.attributes.children.attributes.employees.required": "False",
"root.attributes.children.attributes.employees.items.type": "M",
"root.attributes.children.attributes.employees.items.attributes.employee_id.type": "S",
"root.attributes.children.attributes.employees.items.attributes.employee_id.required": "True",
"root.attributes.children.attributes.employees.items.attributes.employee_id.format": "uuidv4",
"root.attributes.children.attributes.employees.items.attributes.employee_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.children.attributes.employees.items.attributes.entity_id.type": "S",
"root.attributes.children.attributes.employees.items.attributes.entity_id.required": "False",
"root.attributes.children.attributes.employees.items.attributes.entity_id.format": "uuidv4",
"root.attributes.children.attributes.employees.items.attributes.entity_id.regex": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"root.attributes.children.attributes.employees.items.attributes.entity_number.type": "S",
"root.attributes.children.attributes.employees.items.attributes.entity_number.required": "False",
"root.attributes.children.attributes.employees.items.attributes.entity_number.regex": "^[0-9]{4}$",
"root.attributes.children.attributes.employees.items.attributes.employee_number.type": "S",
"root.attributes.children.attributes.employees.items.attributes.employee_number.required": "False",
"root.attributes.children.attributes.employees.items.attributes.employee_number.regex": "^[0-9]{5}$",
"root.attributes.children.attributes.employees.items.attributes.display_name.type": "S",
"root.attributes.children.attributes.employees.items.attributes.display_name.required": "False",
"root.attributes.children.attributes.employees.items.attributes.display_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
"root.attributes.children.attributes.employees.items.attributes.employee_password_hash.type": "S",
"root.attributes.children.attributes.employees.items.attributes.employee_password_hash.required": "False",
"root.attributes.children.attributes.employees.items.attributes.employee_password_hash.regex": "^.{1,500}$",
"root.attributes.children.attributes.employees.items.attributes.is_active.type": "BOOL",
"root.attributes.children.attributes.employees.items.attributes.is_active.required": "False",
"root.attributes.children.attributes.employees.items.attributes.is_active.regex": "^(true|false)$",
"root.attributes.children.attributes.employees.items.attributes.created_at.type": "S",
"root.attributes.children.attributes.employees.items.attributes.created_at.required": "False",
"root.attributes.children.attributes.employees.items.attributes.created_at.format": "iso8601",
"root.attributes.children.attributes.employees.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.employees.items.attributes.updated_at.type": "S",
"root.attributes.children.attributes.employees.items.attributes.updated_at.required": "False",
"root.attributes.children.attributes.employees.items.attributes.updated_at.format": "iso8601",
"root.attributes.children.attributes.employees.items.attributes.updated_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$"
}
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¶
{
"entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2",
"entity_number": "1000",
"entity_name": "North Branch",
"is_active": "True",
"created_at": "2026-05-24T13:38:18Z",
"updated_at": "2026-05-24T13:38:18Z",
"children.employees[0].employee_id": "14c92d5d-daa7-4ea9-9507-dd366304dbf2",
"children.employees[0].entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2",
"children.employees[0].entity_number": "1000",
"children.employees[0].employee_number": "10000",
"children.employees[0].display_name": "Ramon Santos",
"children.employees[0].employee_password_hash": "Sample text 001",
"children.employees[0].is_active": "True",
"children.employees[0].created_at": "2026-05-24T13:38:18Z",
"children.employees[0].updated_at": "2026-05-24T13:38:18Z"
}
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 PATCH "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-entities-patch-one" -H "Content-Type: application/json" --data-raw "{\"entity_id\": \"d49b8a8c-30d9-4172-bb72-71855d5804c2\", \"entity_number\": \"1000\", \"entity_name\": \"North Branch\", \"is_active\": true, \"created_at\": \"2026-05-24T13:38:18Z\", \"updated_at\": \"2026-05-24T13:38:18Z\", \"children\": {\"employees\": [{\"employee_id\": \"14c92d5d-daa7-4ea9-9507-dd366304dbf2\", \"entity_id\": \"d49b8a8c-30d9-4172-bb72-71855d5804c2\", \"entity_number\": \"1000\", \"employee_number\": \"10000\", \"display_name\": \"Ramon Santos\", \"employee_password_hash\": \"Sample text 001\", \"is_active\": true, \"created_at\": \"2026-05-24T13:38:18Z\", \"updated_at\": \"2026-05-24T13:38:18Z\"}]}}"
PowerShell curl¶
curl.exe -X PATCH "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-entities-patch-one" -H "Content-Type: application/json" --data-raw '{"entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "entity_number": "1000", "entity_name": "North Branch", "is_active": true, "created_at": "2026-05-24T13:38:18Z", "updated_at": "2026-05-24T13:38:18Z", "children": {"employees": [{"employee_id": "14c92d5d-daa7-4ea9-9507-dd366304dbf2", "entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "entity_number": "1000", "employee_number": "10000", "display_name": "Ramon Santos", "employee_password_hash": "Sample text 001", "is_active": true, "created_at": "2026-05-24T13:38:18Z", "updated_at": "2026-05-24T13:38:18Z"}]}}'