.. AUTO-GENERATED FILE. DO NOT EDIT. /one-employees-post-one ======================= Summary ------- - **Source repository:** ``jef-systems/jef-one-backend`` - **Source SHA:** ``a8edf3d77c4689168400069ba74f46fd06c3178c`` - **Source run id:** ``30149511957`` - **Lambda function:** ``jef-one-post-003`` - **HTTP method:** ``POST`` - **API path:** ``/one-employees-post-one`` - **Cloudflare path:** ``/one/async-post/one-employees-post-one`` - **Endpoint URL:** ``https://api.jefoffice.com/one/async-post/one-employees-post-one`` - **Cloudflare base URL:** ``https://api.jefoffice.com/one/async-post`` - **Cloudflare parent path:** ``/one`` - **Cloudflare scope:** ``async-post`` - **Cloudflare scope path:** ``/one/async-post`` - **Cloudflare mode:** ``one-worker-for-lambda-async-post`` - **Cloudflare Worker:** ``jef-one-lambda-async-post`` - **Cloudflare Worker route:** ``api.jefoffice.com/one/async-post/\*`` - **Payload mode:** ``json-body`` Description ----------- .. list-table:: :widths: 30 70 * - ``Function`` - jef-one-post-003 Logical ID: jef-one:jef-one-employees:post-one Order Number: 003 * - ``Module`` - jef-one * - ``Action`` - post-one * - ``Method`` - POST * - ``Invocation Mode`` - ASYNC * - ``Resource Path`` - /one-employees-post-one Endpoint Name: jef-one-employees-post-one * - ``Table`` - jef-one-employees * - ``Primary Key`` - employee\_id API Gateway Response -------------------- .. list-table:: :widths: 30 70 * - ``status\_code`` - 202 * - ``message`` - Request accepted for asynchronous processing. Payload Example --------------- .. list-table:: :widths: 30 70 * - ``employee\_id`` - d6306800-7079-4d7d-bc59-403c9e55ad0c * - ``domain\_id`` - 2423cc46-fa10-420b-90d7-68ed5be78b99 * - ``entity\_id`` - 04a071ba-f962-4d21-8539-b37a5d704ced * - ``entity\_number`` - value-001 * - ``employee\_number`` - value-001 * - ``display\_name`` - Sample Name * - ``employee\_password\_hash`` - value-001 * - ``is\_active`` - True * - ``created`` - 2026-07-25T07:32:49Z * - ``updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-employee-logs\[0\].employee\_log\_id`` - 24bf7218-f209-4bc8-b31b-d3b80f7f5bb2 * - ``children.jef-one-employee-logs\[0\].domain\_id`` - 8d6db17b-ce95-4593-93d5-ea081e0687ea * - ``children.jef-one-employee-logs\[0\].employee\_id`` - d6306800-7079-4d7d-bc59-403c9e55ad0c * - ``children.jef-one-employee-logs\[0\].log\_type`` - value-001 * - ``children.jef-one-employee-logs\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-employee-logs\[0\].updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-employee-roles\[0\].employee\_role\_id`` - 2978b391-32bd-4bec-adc2-b053acefb5d9 * - ``children.jef-one-employee-roles\[0\].domain\_id`` - 73dde788-a786-49a2-8082-5bd114d3773d * - ``children.jef-one-employee-roles\[0\].employee\_id`` - d6306800-7079-4d7d-bc59-403c9e55ad0c * - ``children.jef-one-employee-roles\[0\].role\_id`` - 8e415656-e345-4cb8-91b3-c788da4dd31b * - ``children.jef-one-employee-roles\[0\].employee\_number`` - value-001 * - ``children.jef-one-employee-roles\[0\].role\_type`` - value-001 * - ``children.jef-one-employee-roles\[0\].role\_name`` - Sample Name * - ``children.jef-one-employee-roles\[0\].role\_description`` - value-001 * - ``children.jef-one-employee-roles\[0\].is\_active`` - True * - ``children.jef-one-employee-roles\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-employee-roles\[0\].updated`` - 2026-07-25T07:32:49Z Payload Schema -------------- .. code-block:: json { "type": "object", "additionalProperties": "False", "payload_mode": "parent-plus-children-wrapper", "allow_children_wrapper": "True", "children_wrapper_field": "children", "allow_batch": "False", "table": "jef-one-employees", "primary_key": "employee_id", "required[0]": "domain_id", "required[1]": "entity_id", "required[2]": "entity_number", "required[3]": "employee_number", "required[4]": "display_name", "required[5]": "employee_password_hash", "properties.employee_id.field": "employee_id", "properties.employee_id.type": "S", "properties.employee_id.required": "False", "properties.employee_id.source_required": "True", "properties.employee_id.server_generated": "True", "properties.employee_id.autogenerated": "False", "properties.employee_id.frontend_autocomputed": "False", "properties.employee_id.format": "uuidv4", "properties.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}$", "properties.domain_id.field": "domain_id", "properties.domain_id.type": "S", "properties.domain_id.required": "True", "properties.domain_id.source_required": "True", "properties.domain_id.server_generated": "True", "properties.domain_id.autogenerated": "False", "properties.domain_id.frontend_autocomputed": "False", "properties.domain_id.format": "uuidv4", "properties.domain_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}$", "properties.entity_id.field": "entity_id", "properties.entity_id.type": "S", "properties.entity_id.required": "True", "properties.entity_id.source_required": "True", "properties.entity_id.server_generated": "True", "properties.entity_id.autogenerated": "False", "properties.entity_id.frontend_autocomputed": "False", "properties.entity_id.format": "uuidv4", "properties.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}$", "properties.entity_number.field": "entity_number", "properties.entity_number.type": "S", "properties.entity_number.required": "True", "properties.entity_number.source_required": "True", "properties.entity_number.server_generated": "False", "properties.entity_number.autogenerated": "False", "properties.entity_number.frontend_autocomputed": "False", "properties.entity_number.regex": "^[0-9]{4}$", "properties.employee_number.field": "employee_number", "properties.employee_number.type": "S", "properties.employee_number.required": "True", "properties.employee_number.source_required": "True", "properties.employee_number.server_generated": "False", "properties.employee_number.autogenerated": "False", "properties.employee_number.frontend_autocomputed": "False", "properties.employee_number.regex": "^[0-9]{5}$", "properties.display_name.field": "display_name", "properties.display_name.type": "S", "properties.display_name.required": "True", "properties.display_name.source_required": "True", "properties.display_name.server_generated": "False", "properties.display_name.autogenerated": "False", "properties.display_name.frontend_autocomputed": "False", "properties.display_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "properties.employee_password_hash.field": "employee_password_hash", "properties.employee_password_hash.type": "S", "properties.employee_password_hash.required": "True", "properties.employee_password_hash.source_required": "True", "properties.employee_password_hash.server_generated": "False", "properties.employee_password_hash.autogenerated": "False", "properties.employee_password_hash.frontend_autocomputed": "False", "properties.employee_password_hash.regex": "^.{1,500}$", "properties.is_active.field": "is_active", "properties.is_active.type": "BOOL", "properties.is_active.required": "False", "properties.is_active.source_required": "True", "properties.is_active.server_generated": "False", "properties.is_active.autogenerated": "False", "properties.is_active.frontend_autocomputed": "False", "properties.is_active.regex": "^(true|false)$", "properties.created.field": "created", "properties.created.type": "S", "properties.created.required": "False", "properties.created.source_required": "True", "properties.created.server_generated": "True", "properties.created.autogenerated": "False", "properties.created.frontend_autocomputed": "False", "properties.created.format": "iso8601", "properties.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "properties.updated.field": "updated", "properties.updated.type": "S", "properties.updated.required": "False", "properties.updated.source_required": "True", "properties.updated.server_generated": "True", "properties.updated.autogenerated": "False", "properties.updated.frontend_autocomputed": "False", "properties.updated.format": "iso8601", "properties.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "children[0].parent_table": "jef-one-employees", "children[0].child_table": "jef-one-employee-logs", "children[0].parent_key": "employee_id", "children[0].child_foreign_key": "employee_id", "children[0].child_index_name": "gsi_1", "children[0].child_index_key": "gsi_1_pk", "children[0].aliases[0]": "jef-one-employee-logs", "children[0].aliases[1]": "employee-logs", "children[0].aliases[2]": "one-employee-logs", "children[0].aliases[3]": "jef_one_employee_logs", "children[0].aliases[4]": "employee_logs", "children[0].aliases[5]": "one_employee_logs", "children[0].aliases[6]": "logs", "children[1].parent_table": "jef-one-employees", "children[1].child_table": "jef-one-employee-roles", "children[1].parent_key": "employee_id", "children[1].child_foreign_key": "employee_id", "children[1].child_index_name": "gsi_1", "children[1].child_index_key": "gsi_1_pk", "children[1].aliases[0]": "jef-one-employee-roles", "children[1].aliases[1]": "employee-roles", "children[1].aliases[2]": "one-employee-roles", "children[1].aliases[3]": "jef_one_employee_roles", "children[1].aliases[4]": "employee_roles", "children[1].aliases[5]": "one_employee_roles", "children[1].aliases[6]": "roles", "root.type": "object", "root.attributes.employee_id.field": "employee_id", "root.attributes.employee_id.type": "S", "root.attributes.employee_id.required": "False", "root.attributes.employee_id.source_required": "True", "root.attributes.employee_id.server_generated": "True", "root.attributes.employee_id.autogenerated": "False", "root.attributes.employee_id.frontend_autocomputed": "False", "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.domain_id.field": "domain_id", "root.attributes.domain_id.type": "S", "root.attributes.domain_id.required": "True", "root.attributes.domain_id.source_required": "True", "root.attributes.domain_id.server_generated": "True", "root.attributes.domain_id.autogenerated": "False", "root.attributes.domain_id.frontend_autocomputed": "False", "root.attributes.domain_id.format": "uuidv4", "root.attributes.domain_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.field": "entity_id", "root.attributes.entity_id.type": "S", "root.attributes.entity_id.required": "True", "root.attributes.entity_id.source_required": "True", "root.attributes.entity_id.server_generated": "True", "root.attributes.entity_id.autogenerated": "False", "root.attributes.entity_id.frontend_autocomputed": "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.field": "entity_number", "root.attributes.entity_number.type": "S", "root.attributes.entity_number.required": "True", "root.attributes.entity_number.source_required": "True", "root.attributes.entity_number.server_generated": "False", "root.attributes.entity_number.autogenerated": "False", "root.attributes.entity_number.frontend_autocomputed": "False", "root.attributes.entity_number.regex": "^[0-9]{4}$", "root.attributes.employee_number.field": "employee_number", "root.attributes.employee_number.type": "S", "root.attributes.employee_number.required": "True", "root.attributes.employee_number.source_required": "True", "root.attributes.employee_number.server_generated": "False", "root.attributes.employee_number.autogenerated": "False", "root.attributes.employee_number.frontend_autocomputed": "False", "root.attributes.employee_number.regex": "^[0-9]{5}$", "root.attributes.display_name.field": "display_name", "root.attributes.display_name.type": "S", "root.attributes.display_name.required": "True", "root.attributes.display_name.source_required": "True", "root.attributes.display_name.server_generated": "False", "root.attributes.display_name.autogenerated": "False", "root.attributes.display_name.frontend_autocomputed": "False", "root.attributes.display_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.employee_password_hash.field": "employee_password_hash", "root.attributes.employee_password_hash.type": "S", "root.attributes.employee_password_hash.required": "True", "root.attributes.employee_password_hash.source_required": "True", "root.attributes.employee_password_hash.server_generated": "False", "root.attributes.employee_password_hash.autogenerated": "False", "root.attributes.employee_password_hash.frontend_autocomputed": "False", "root.attributes.employee_password_hash.regex": "^.{1,500}$", "root.attributes.is_active.field": "is_active", "root.attributes.is_active.type": "BOOL", "root.attributes.is_active.required": "False", "root.attributes.is_active.source_required": "True", "root.attributes.is_active.server_generated": "False", "root.attributes.is_active.autogenerated": "False", "root.attributes.is_active.frontend_autocomputed": "False", "root.attributes.is_active.regex": "^(true|false)$", "root.attributes.created.field": "created", "root.attributes.created.type": "S", "root.attributes.created.required": "False", "root.attributes.created.source_required": "True", "root.attributes.created.server_generated": "True", "root.attributes.created.autogenerated": "False", "root.attributes.created.frontend_autocomputed": "False", "root.attributes.created.format": "iso8601", "root.attributes.created.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$", "root.attributes.updated.field": "updated", "root.attributes.updated.type": "S", "root.attributes.updated.required": "False", "root.attributes.updated.source_required": "True", "root.attributes.updated.server_generated": "True", "root.attributes.updated.autogenerated": "False", "root.attributes.updated.frontend_autocomputed": "False", "root.attributes.updated.format": "iso8601", "root.attributes.updated.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$" } Response Schema --------------- .. code-block:: json { "type": "object", "properties.ok.type": "boolean", "properties.accepted.type": "boolean", "properties.is_committed.type": "boolean", "properties.request_id.type": "string", "properties.message.type": "string", "properties.table.type": "string", "properties.operation.type": "string", "properties.primary_key.type": "string", "properties.primary_key_value.type": "string", "properties.item_write_count.type": "number", "properties.child_write_count.type": "number" } Request Payload --------------- .. code-block:: json { "employee_id": "d6306800-7079-4d7d-bc59-403c9e55ad0c", "domain_id": "2423cc46-fa10-420b-90d7-68ed5be78b99", "entity_id": "04a071ba-f962-4d21-8539-b37a5d704ced", "entity_number": "value-001", "employee_number": "value-001", "display_name": "Sample Name", "employee_password_hash": "value-001", "is_active": "True", "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z", "children.jef-one-employee-logs[0].employee_log_id": "24bf7218-f209-4bc8-b31b-d3b80f7f5bb2", "children.jef-one-employee-logs[0].domain_id": "8d6db17b-ce95-4593-93d5-ea081e0687ea", "children.jef-one-employee-logs[0].employee_id": "d6306800-7079-4d7d-bc59-403c9e55ad0c", "children.jef-one-employee-logs[0].log_type": "value-001", "children.jef-one-employee-logs[0].created": "2026-07-25T07:32:49Z", "children.jef-one-employee-logs[0].updated": "2026-07-25T07:32:49Z", "children.jef-one-employee-roles[0].employee_role_id": "2978b391-32bd-4bec-adc2-b053acefb5d9", "children.jef-one-employee-roles[0].domain_id": "73dde788-a786-49a2-8082-5bd114d3773d", "children.jef-one-employee-roles[0].employee_id": "d6306800-7079-4d7d-bc59-403c9e55ad0c", "children.jef-one-employee-roles[0].role_id": "8e415656-e345-4cb8-91b3-c788da4dd31b", "children.jef-one-employee-roles[0].employee_number": "value-001", "children.jef-one-employee-roles[0].role_type": "value-001", "children.jef-one-employee-roles[0].role_name": "Sample Name", "children.jef-one-employee-roles[0].role_description": "value-001", "children.jef-one-employee-roles[0].is_active": "True", "children.jef-one-employee-roles[0].created": "2026-07-25T07:32:49Z", "children.jef-one-employee-roles[0].updated": "2026-07-25T07:32:49Z" } Response -------- .. code-block:: json { "type": "object", "properties.ok.type": "boolean", "properties.accepted.type": "boolean", "properties.is_committed.type": "boolean", "properties.request_id.type": "string", "properties.message.type": "string", "properties.table.type": "string", "properties.operation.type": "string", "properties.primary_key.type": "string", "properties.primary_key_value.type": "string", "properties.item_write_count.type": "number", "properties.child_write_count.type": "number" } CMD curl -------- .. code-block:: bat curl -X POST "https://api.jefoffice.com/one/async-post/one-employees-post-one" -H "Content-Type: application/json" --data-raw "{\"employee_id\": \"d6306800-7079-4d7d-bc59-403c9e55ad0c\", \"domain_id\": \"2423cc46-fa10-420b-90d7-68ed5be78b99\", \"entity_id\": \"04a071ba-f962-4d21-8539-b37a5d704ced\", \"entity_number\": \"value-001\", \"employee_number\": \"value-001\", \"display_name\": \"Sample Name\", \"employee_password_hash\": \"value-001\", \"is_active\": true, \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\", \"children\": {\"jef-one-employee-logs\": [{\"employee_log_id\": \"24bf7218-f209-4bc8-b31b-d3b80f7f5bb2\", \"domain_id\": \"8d6db17b-ce95-4593-93d5-ea081e0687ea\", \"employee_id\": \"d6306800-7079-4d7d-bc59-403c9e55ad0c\", \"log_type\": \"value-001\", \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\"}], \"jef-one-employee-roles\": [{\"employee_role_id\": \"2978b391-32bd-4bec-adc2-b053acefb5d9\", \"domain_id\": \"73dde788-a786-49a2-8082-5bd114d3773d\", \"employee_id\": \"d6306800-7079-4d7d-bc59-403c9e55ad0c\", \"role_id\": \"8e415656-e345-4cb8-91b3-c788da4dd31b\", \"employee_number\": \"value-001\", \"role_type\": \"value-001\", \"role_name\": \"Sample Name\", \"role_description\": \"value-001\", \"is_active\": true, \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\"}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://api.jefoffice.com/one/async-post/one-employees-post-one" -H "Content-Type: application/json" --data-raw '{"employee_id": "d6306800-7079-4d7d-bc59-403c9e55ad0c", "domain_id": "2423cc46-fa10-420b-90d7-68ed5be78b99", "entity_id": "04a071ba-f962-4d21-8539-b37a5d704ced", "entity_number": "value-001", "employee_number": "value-001", "display_name": "Sample Name", "employee_password_hash": "value-001", "is_active": true, "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z", "children": {"jef-one-employee-logs": [{"employee_log_id": "24bf7218-f209-4bc8-b31b-d3b80f7f5bb2", "domain_id": "8d6db17b-ce95-4593-93d5-ea081e0687ea", "employee_id": "d6306800-7079-4d7d-bc59-403c9e55ad0c", "log_type": "value-001", "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z"}], "jef-one-employee-roles": [{"employee_role_id": "2978b391-32bd-4bec-adc2-b053acefb5d9", "domain_id": "73dde788-a786-49a2-8082-5bd114d3773d", "employee_id": "d6306800-7079-4d7d-bc59-403c9e55ad0c", "role_id": "8e415656-e345-4cb8-91b3-c788da4dd31b", "employee_number": "value-001", "role_type": "value-001", "role_name": "Sample Name", "role_description": "value-001", "is_active": true, "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z"}]}}'