.. AUTO-GENERATED FILE. DO NOT EDIT. /one-employees-patch-one ======================== Summary ------- - **Source repository:** ``jef-systems/jef-one-backend`` - **Source SHA:** ``cabdf720f0e0bb4038428358fd150f2f95c55ff8`` - **Source run id:** ``26362915503`` - **Lambda function:** ``jef-one-employees-patch-one`` - **HTTP method:** ``PATCH`` - **API path:** ``/one-employees-patch-one`` - **Endpoint URL:** ``https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-employees-patch-one`` - **Payload mode:** ``json-body`` Description ----------- - ``Function``: jef-one-employees-patch-one - ``Module``: jef-one - ``Action``: patch-one - ``Method``: PATCH - ``Invocation Mode``: ASYNC - ``Resource Path``: /one-employees-patch-one - ``Table``: jef-one-employees - ``Primary Key``: employee\_id API Gateway Response -------------------- - ``status\_code``: 202 - ``message``: Request accepted for asynchronous processing. Payload Example --------------- - ``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 - ``children.entity\_credentials\[0\].entity\_credential\_id``: c1eabbbf-120b-40b2-b20a-3ab8297d2d75 - ``children.entity\_credentials\[0\].entity\_id``: d49b8a8c-30d9-4172-bb72-71855d5804c2 - ``children.entity\_credentials\[0\].employee\_id``: 14c92d5d-daa7-4ea9-9507-dd366304dbf2 - ``children.entity\_credentials\[0\].entity\_number``: 1000 - ``children.entity\_credentials\[0\].employee\_number``: 10000 - ``children.entity\_credentials\[0\].employee\_password\_hash``: Sample text 001 - ``children.entity\_credentials\[0\].is\_active``: True - ``children.entity\_credentials\[0\].created\_at``: 2026-05-24T13:38:18Z - ``children.entity\_credentials\[0\].updated\_at``: 2026-05-24T13:38:18Z - ``children.sessions\[0\].session\_id``: 4dc84733-ce2a-461b-8017-4e77b3f99a66 - ``children.sessions\[0\].employee\_id``: 14c92d5d-daa7-4ea9-9507-dd366304dbf2 - ``children.sessions\[0\].entity\_id``: d49b8a8c-30d9-4172-bb72-71855d5804c2 - ``children.sessions\[0\].application\_id``: 21ea80c8-aed9-494c-bd23-86f044b58c20 - ``children.sessions\[0\].application\_name``: North Branch POS - ``children.sessions\[0\].entity\_number``: 1000 - ``children.sessions\[0\].employee\_number``: 10000 - ``children.sessions\[0\].status``: pending - ``children.sessions\[0\].is\_valid``: True - ``children.sessions\[0\].is\_active``: True - ``children.sessions\[0\].expires\_at``: 2026-05-24T13:38:18Z - ``children.sessions\[0\].created\_at``: 2026-05-24T13:38:18Z - ``children.sessions\[0\].updated\_at``: 2026-05-24T13:38:18Z - ``children.sessions\[0\].verified\_at``: 2026-05-24T13:38:18Z - ``children.sessions\[0\].failure\_reason``: Generated for sample transaction flow Payload Schema -------------- .. code-block:: json { "root.type": "M", "root.required": "True", "root.attributes.employee_id.type": "S", "root.attributes.employee_id.required": "True", "root.attributes.employee_id.format": "uuidv4", "root.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.entity_id.type": "S", "root.attributes.entity_id.required": "False", "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.employee_number.type": "S", "root.attributes.employee_number.required": "False", "root.attributes.employee_number.regex": "^[0-9]{5}$", "root.attributes.display_name.type": "S", "root.attributes.display_name.required": "False", "root.attributes.display_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.employee_password_hash.type": "S", "root.attributes.employee_password_hash.required": "False", "root.attributes.employee_password_hash.regex": "^.{1,500}$", "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.entity_credentials.type": "L", "root.attributes.children.attributes.entity_credentials.required": "False", "root.attributes.children.attributes.entity_credentials.items.type": "M", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_credential_id.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_credential_id.required": "True", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_credential_id.format": "uuidv4", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_credential_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.entity_credentials.items.attributes.entity_id.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_id.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_id.format": "uuidv4", "root.attributes.children.attributes.entity_credentials.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.entity_credentials.items.attributes.employee_id.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_id.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_id.format": "uuidv4", "root.attributes.children.attributes.entity_credentials.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.entity_credentials.items.attributes.entity_number.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_number.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.entity_number.regex": "^[0-9]{4}$", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_number.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_number.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_number.regex": "^[0-9]{5}$", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_password_hash.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_password_hash.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.employee_password_hash.regex": "^.{1,500}$", "root.attributes.children.attributes.entity_credentials.items.attributes.is_active.type": "BOOL", "root.attributes.children.attributes.entity_credentials.items.attributes.is_active.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.is_active.regex": "^(true|false)$", "root.attributes.children.attributes.entity_credentials.items.attributes.created_at.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.created_at.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.created_at.format": "iso8601", "root.attributes.children.attributes.entity_credentials.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.entity_credentials.items.attributes.updated_at.type": "S", "root.attributes.children.attributes.entity_credentials.items.attributes.updated_at.required": "False", "root.attributes.children.attributes.entity_credentials.items.attributes.updated_at.format": "iso8601", "root.attributes.children.attributes.entity_credentials.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.sessions.type": "L", "root.attributes.children.attributes.sessions.required": "False", "root.attributes.children.attributes.sessions.items.type": "M", "root.attributes.children.attributes.sessions.items.attributes.session_id.type": "S", "root.attributes.children.attributes.sessions.items.attributes.session_id.required": "True", "root.attributes.children.attributes.sessions.items.attributes.session_id.format": "uuidv4", "root.attributes.children.attributes.sessions.items.attributes.session_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.sessions.items.attributes.employee_id.type": "S", "root.attributes.children.attributes.sessions.items.attributes.employee_id.required": "False", "root.attributes.children.attributes.sessions.items.attributes.employee_id.format": "uuidv4", "root.attributes.children.attributes.sessions.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.sessions.items.attributes.entity_id.type": "S", "root.attributes.children.attributes.sessions.items.attributes.entity_id.required": "False", "root.attributes.children.attributes.sessions.items.attributes.entity_id.format": "uuidv4", "root.attributes.children.attributes.sessions.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.sessions.items.attributes.application_id.type": "S", "root.attributes.children.attributes.sessions.items.attributes.application_id.required": "False", "root.attributes.children.attributes.sessions.items.attributes.application_id.format": "uuidv4", "root.attributes.children.attributes.sessions.items.attributes.application_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.sessions.items.attributes.application_name.type": "S", "root.attributes.children.attributes.sessions.items.attributes.application_name.required": "False", "root.attributes.children.attributes.sessions.items.attributes.application_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.children.attributes.sessions.items.attributes.entity_number.type": "S", "root.attributes.children.attributes.sessions.items.attributes.entity_number.required": "False", "root.attributes.children.attributes.sessions.items.attributes.entity_number.regex": "^[0-9]{4}$", "root.attributes.children.attributes.sessions.items.attributes.employee_number.type": "S", "root.attributes.children.attributes.sessions.items.attributes.employee_number.required": "False", "root.attributes.children.attributes.sessions.items.attributes.employee_number.regex": "^[0-9]{5}$", "root.attributes.children.attributes.sessions.items.attributes.status.type": "S", "root.attributes.children.attributes.sessions.items.attributes.status.required": "False", "root.attributes.children.attributes.sessions.items.attributes.status.regex": "^(pending|verified|failed|expired|revoked)$", "root.attributes.children.attributes.sessions.items.attributes.is_valid.type": "BOOL", "root.attributes.children.attributes.sessions.items.attributes.is_valid.required": "False", "root.attributes.children.attributes.sessions.items.attributes.is_valid.regex": "^(true|false)$", "root.attributes.children.attributes.sessions.items.attributes.is_active.type": "BOOL", "root.attributes.children.attributes.sessions.items.attributes.is_active.required": "False", "root.attributes.children.attributes.sessions.items.attributes.is_active.regex": "^(true|false)$", "root.attributes.children.attributes.sessions.items.attributes.expires_at.type": "S", "root.attributes.children.attributes.sessions.items.attributes.expires_at.required": "False", "root.attributes.children.attributes.sessions.items.attributes.expires_at.format": "iso8601", "root.attributes.children.attributes.sessions.items.attributes.expires_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.children.attributes.sessions.items.attributes.created_at.type": "S", "root.attributes.children.attributes.sessions.items.attributes.created_at.required": "False", "root.attributes.children.attributes.sessions.items.attributes.created_at.format": "iso8601", "root.attributes.children.attributes.sessions.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.sessions.items.attributes.updated_at.type": "S", "root.attributes.children.attributes.sessions.items.attributes.updated_at.required": "False", "root.attributes.children.attributes.sessions.items.attributes.updated_at.format": "iso8601", "root.attributes.children.attributes.sessions.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.sessions.items.attributes.verified_at.type": "S", "root.attributes.children.attributes.sessions.items.attributes.verified_at.required": "False", "root.attributes.children.attributes.sessions.items.attributes.verified_at.format": "iso8601", "root.attributes.children.attributes.sessions.items.attributes.verified_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.children.attributes.sessions.items.attributes.failure_reason.type": "S", "root.attributes.children.attributes.sessions.items.attributes.failure_reason.required": "False", "root.attributes.children.attributes.sessions.items.attributes.failure_reason.regex": "^.{0,500}$" } 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 { "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", "children.entity_credentials[0].entity_credential_id": "c1eabbbf-120b-40b2-b20a-3ab8297d2d75", "children.entity_credentials[0].entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "children.entity_credentials[0].employee_id": "14c92d5d-daa7-4ea9-9507-dd366304dbf2", "children.entity_credentials[0].entity_number": "1000", "children.entity_credentials[0].employee_number": "10000", "children.entity_credentials[0].employee_password_hash": "Sample text 001", "children.entity_credentials[0].is_active": "True", "children.entity_credentials[0].created_at": "2026-05-24T13:38:18Z", "children.entity_credentials[0].updated_at": "2026-05-24T13:38:18Z", "children.sessions[0].session_id": "4dc84733-ce2a-461b-8017-4e77b3f99a66", "children.sessions[0].employee_id": "14c92d5d-daa7-4ea9-9507-dd366304dbf2", "children.sessions[0].entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "children.sessions[0].application_id": "21ea80c8-aed9-494c-bd23-86f044b58c20", "children.sessions[0].application_name": "North Branch POS", "children.sessions[0].entity_number": "1000", "children.sessions[0].employee_number": "10000", "children.sessions[0].status": "pending", "children.sessions[0].is_valid": "True", "children.sessions[0].is_active": "True", "children.sessions[0].expires_at": "2026-05-24T13:38:18Z", "children.sessions[0].created_at": "2026-05-24T13:38:18Z", "children.sessions[0].updated_at": "2026-05-24T13:38:18Z", "children.sessions[0].verified_at": "2026-05-24T13:38:18Z", "children.sessions[0].failure_reason": "Generated for sample transaction flow" } 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://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-employees-patch-one" -H "Content-Type: application/json" --data-raw "{\"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\", \"children\": {\"entity_credentials\": [{\"entity_credential_id\": \"c1eabbbf-120b-40b2-b20a-3ab8297d2d75\", \"entity_id\": \"d49b8a8c-30d9-4172-bb72-71855d5804c2\", \"employee_id\": \"14c92d5d-daa7-4ea9-9507-dd366304dbf2\", \"entity_number\": \"1000\", \"employee_number\": \"10000\", \"employee_password_hash\": \"Sample text 001\", \"is_active\": true, \"created_at\": \"2026-05-24T13:38:18Z\", \"updated_at\": \"2026-05-24T13:38:18Z\"}], \"sessions\": [{\"session_id\": \"4dc84733-ce2a-461b-8017-4e77b3f99a66\", \"employee_id\": \"14c92d5d-daa7-4ea9-9507-dd366304dbf2\", \"entity_id\": \"d49b8a8c-30d9-4172-bb72-71855d5804c2\", \"application_id\": \"21ea80c8-aed9-494c-bd23-86f044b58c20\", \"application_name\": \"North Branch POS\", \"entity_number\": \"1000\", \"employee_number\": \"10000\", \"status\": \"pending\", \"is_valid\": true, \"is_active\": true, \"expires_at\": \"2026-05-24T13:38:18Z\", \"created_at\": \"2026-05-24T13:38:18Z\", \"updated_at\": \"2026-05-24T13:38:18Z\", \"verified_at\": \"2026-05-24T13:38:18Z\", \"failure_reason\": \"Generated for sample transaction flow\"}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X PATCH "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-employees-patch-one" -H "Content-Type: application/json" --data-raw '{"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", "children": {"entity_credentials": [{"entity_credential_id": "c1eabbbf-120b-40b2-b20a-3ab8297d2d75", "entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "employee_id": "14c92d5d-daa7-4ea9-9507-dd366304dbf2", "entity_number": "1000", "employee_number": "10000", "employee_password_hash": "Sample text 001", "is_active": true, "created_at": "2026-05-24T13:38:18Z", "updated_at": "2026-05-24T13:38:18Z"}], "sessions": [{"session_id": "4dc84733-ce2a-461b-8017-4e77b3f99a66", "employee_id": "14c92d5d-daa7-4ea9-9507-dd366304dbf2", "entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "application_id": "21ea80c8-aed9-494c-bd23-86f044b58c20", "application_name": "North Branch POS", "entity_number": "1000", "employee_number": "10000", "status": "pending", "is_valid": true, "is_active": true, "expires_at": "2026-05-24T13:38:18Z", "created_at": "2026-05-24T13:38:18Z", "updated_at": "2026-05-24T13:38:18Z", "verified_at": "2026-05-24T13:38:18Z", "failure_reason": "Generated for sample transaction flow"}]}}'