.. AUTO-GENERATED FILE. DO NOT EDIT. /one-domains-post-one ===================== Summary ------- - **Source repository:** ``jef-systems/jef-one-backend`` - **Source SHA:** ``a8edf3d77c4689168400069ba74f46fd06c3178c`` - **Source run id:** ``30149511957`` - **Lambda function:** ``jef-one-post-002`` - **HTTP method:** ``POST`` - **API path:** ``/one-domains-post-one`` - **Cloudflare path:** ``/one/async-post/one-domains-post-one`` - **Endpoint URL:** ``https://api.jefoffice.com/one/async-post/one-domains-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-002 Logical ID: jef-one:jef-one-domains:post-one Order Number: 002 * - ``Module`` - jef-one * - ``Action`` - post-one * - ``Method`` - POST * - ``Invocation Mode`` - ASYNC * - ``Resource Path`` - /one-domains-post-one Endpoint Name: jef-one-domains-post-one * - ``Table`` - jef-one-domains * - ``Primary Key`` - domain\_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 * - ``domain\_id`` - bc20da12-fb72-4822-9007-9b86d9978c43 * - ``domain\_name`` - Sample Name * - ``is\_active`` - True * - ``created`` - 2026-07-25T07:32:49Z * - ``updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-applications\[0\].application\_id`` - 08a57185-e963-40ac-a7c4-7e562a7e9116 * - ``children.jef-one-applications\[0\].domain\_id`` - bc20da12-fb72-4822-9007-9b86d9978c43 * - ``children.jef-one-applications\[0\].application\_name`` - Sample Name * - ``children.jef-one-applications\[0\].is\_active`` - True * - ``children.jef-one-applications\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-applications\[0\].updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-employees\[0\].employee\_id`` - db17ec27-b590-4aef-8ed0-fbd0c77cc099 * - ``children.jef-one-employees\[0\].domain\_id`` - bc20da12-fb72-4822-9007-9b86d9978c43 * - ``children.jef-one-employees\[0\].entity\_id`` - 5a05efc7-6bf3-4a72-8713-37a0b397c1a8 * - ``children.jef-one-employees\[0\].entity\_number`` - value-001 * - ``children.jef-one-employees\[0\].employee\_number`` - value-001 * - ``children.jef-one-employees\[0\].display\_name`` - Sample Name * - ``children.jef-one-employees\[0\].employee\_password\_hash`` - value-001 * - ``children.jef-one-employees\[0\].is\_active`` - True * - ``children.jef-one-employees\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-employees\[0\].updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-entities\[0\].entity\_id`` - 61ca5cf9-f8d1-448e-9e64-e45179f51132 * - ``children.jef-one-entities\[0\].domain\_id`` - bc20da12-fb72-4822-9007-9b86d9978c43 * - ``children.jef-one-entities\[0\].entity\_number`` - value-001 * - ``children.jef-one-entities\[0\].entity\_name`` - Sample Name * - ``children.jef-one-entities\[0\].is\_active`` - True * - ``children.jef-one-entities\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-entities\[0\].updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-roles\[0\].role\_id`` - 82ba6ff1-0fbd-4b42-9e5b-0b971314b2bc * - ``children.jef-one-roles\[0\].domain\_id`` - bc20da12-fb72-4822-9007-9b86d9978c43 * - ``children.jef-one-roles\[0\].role\_type`` - value-001 * - ``children.jef-one-roles\[0\].role\_name`` - Sample Name * - ``children.jef-one-roles\[0\].role\_description`` - value-001 * - ``children.jef-one-roles\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-roles\[0\].updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-sessions\[0\].session\_id`` - aa17d122-7978-4a01-a33a-dedccbc383fb * - ``children.jef-one-sessions\[0\].domain\_id`` - bc20da12-fb72-4822-9007-9b86d9978c43 * - ``children.jef-one-sessions\[0\].employee\_id`` - 8c67a1fa-3598-4002-b411-94a97ef0fedd * - ``children.jef-one-sessions\[0\].entity\_id`` - e885584f-41fc-4bf1-a4d8-1e3cb571a262 * - ``children.jef-one-sessions\[0\].application\_id`` - 4d9b707b-a359-4a08-be39-6705aa1938be * - ``children.jef-one-sessions\[0\].role\_type`` - value-001 * - ``children.jef-one-sessions\[0\].role\_name`` - Sample Name * - ``children.jef-one-sessions\[0\].role\_description`` - value-001 * - ``children.jef-one-sessions\[0\].status`` - value-001 * - ``children.jef-one-sessions\[0\].is\_valid`` - True * - ``children.jef-one-sessions\[0\].is\_active`` - True * - ``children.jef-one-sessions\[0\].expires\_at`` - 2026-07-25T07:32:49Z * - ``children.jef-one-sessions\[0\].created`` - 2026-07-25T07:32:49Z * - ``children.jef-one-sessions\[0\].updated`` - 2026-07-25T07:32:49Z * - ``children.jef-one-sessions\[0\].verified\_at`` - 2026-07-25T07:32:49Z * - ``children.jef-one-sessions\[0\].failure\_code`` - value-001 * - ``children.jef-one-sessions\[0\].failure\_reason`` - value-001 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-domains", "primary_key": "domain_id", "required[0]": "domain_name", "properties.domain_id.field": "domain_id", "properties.domain_id.type": "S", "properties.domain_id.required": "False", "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.domain_name.field": "domain_name", "properties.domain_name.type": "S", "properties.domain_name.required": "True", "properties.domain_name.source_required": "True", "properties.domain_name.server_generated": "False", "properties.domain_name.autogenerated": "False", "properties.domain_name.frontend_autocomputed": "False", "properties.domain_name.regex": "^[A-Za-z0-9 ._-]{1,120}$", "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-domains", "children[0].child_table": "jef-one-applications", "children[0].parent_key": "domain_id", "children[0].child_foreign_key": "domain_id", "children[0].child_index_name": "gsi_1", "children[0].child_index_key": "gsi_1_pk", "children[0].aliases[0]": "jef-one-applications", "children[0].aliases[1]": "applications", "children[0].aliases[2]": "one-applications", "children[0].aliases[3]": "jef_one_applications", "children[0].aliases[4]": "one_applications", "children[1].parent_table": "jef-one-domains", "children[1].child_table": "jef-one-employees", "children[1].parent_key": "domain_id", "children[1].child_foreign_key": "domain_id", "children[1].child_index_name": "gsi_1", "children[1].child_index_key": "gsi_1_pk", "children[1].aliases[0]": "jef-one-employees", "children[1].aliases[1]": "employees", "children[1].aliases[2]": "one-employees", "children[1].aliases[3]": "jef_one_employees", "children[1].aliases[4]": "one_employees", "children[2].parent_table": "jef-one-domains", "children[2].child_table": "jef-one-entities", "children[2].parent_key": "domain_id", "children[2].child_foreign_key": "domain_id", "children[2].child_index_name": "gsi_1", "children[2].child_index_key": "gsi_1_pk", "children[2].aliases[0]": "jef-one-entities", "children[2].aliases[1]": "entities", "children[2].aliases[2]": "one-entities", "children[2].aliases[3]": "jef_one_entities", "children[2].aliases[4]": "one_entities", "children[3].parent_table": "jef-one-domains", "children[3].child_table": "jef-one-roles", "children[3].parent_key": "domain_id", "children[3].child_foreign_key": "domain_id", "children[3].child_index_name": "gsi_1", "children[3].child_index_key": "gsi_1_pk", "children[3].aliases[0]": "jef-one-roles", "children[3].aliases[1]": "roles", "children[3].aliases[2]": "one-roles", "children[3].aliases[3]": "jef_one_roles", "children[3].aliases[4]": "one_roles", "children[4].parent_table": "jef-one-domains", "children[4].child_table": "jef-one-sessions", "children[4].parent_key": "domain_id", "children[4].child_foreign_key": "domain_id", "children[4].child_index_name": "gsi_1", "children[4].child_index_key": "gsi_1_pk", "children[4].aliases[0]": "jef-one-sessions", "children[4].aliases[1]": "sessions", "children[4].aliases[2]": "one-sessions", "children[4].aliases[3]": "jef_one_sessions", "children[4].aliases[4]": "one_sessions", "root.type": "object", "root.attributes.domain_id.field": "domain_id", "root.attributes.domain_id.type": "S", "root.attributes.domain_id.required": "False", "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.domain_name.field": "domain_name", "root.attributes.domain_name.type": "S", "root.attributes.domain_name.required": "True", "root.attributes.domain_name.source_required": "True", "root.attributes.domain_name.server_generated": "False", "root.attributes.domain_name.autogenerated": "False", "root.attributes.domain_name.frontend_autocomputed": "False", "root.attributes.domain_name.regex": "^[A-Za-z0-9 ._-]{1,120}$", "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 { "domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "domain_name": "Sample Name", "is_active": "True", "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z", "children.jef-one-applications[0].application_id": "08a57185-e963-40ac-a7c4-7e562a7e9116", "children.jef-one-applications[0].domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "children.jef-one-applications[0].application_name": "Sample Name", "children.jef-one-applications[0].is_active": "True", "children.jef-one-applications[0].created": "2026-07-25T07:32:49Z", "children.jef-one-applications[0].updated": "2026-07-25T07:32:49Z", "children.jef-one-employees[0].employee_id": "db17ec27-b590-4aef-8ed0-fbd0c77cc099", "children.jef-one-employees[0].domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "children.jef-one-employees[0].entity_id": "5a05efc7-6bf3-4a72-8713-37a0b397c1a8", "children.jef-one-employees[0].entity_number": "value-001", "children.jef-one-employees[0].employee_number": "value-001", "children.jef-one-employees[0].display_name": "Sample Name", "children.jef-one-employees[0].employee_password_hash": "value-001", "children.jef-one-employees[0].is_active": "True", "children.jef-one-employees[0].created": "2026-07-25T07:32:49Z", "children.jef-one-employees[0].updated": "2026-07-25T07:32:49Z", "children.jef-one-entities[0].entity_id": "61ca5cf9-f8d1-448e-9e64-e45179f51132", "children.jef-one-entities[0].domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "children.jef-one-entities[0].entity_number": "value-001", "children.jef-one-entities[0].entity_name": "Sample Name", "children.jef-one-entities[0].is_active": "True", "children.jef-one-entities[0].created": "2026-07-25T07:32:49Z", "children.jef-one-entities[0].updated": "2026-07-25T07:32:49Z", "children.jef-one-roles[0].role_id": "82ba6ff1-0fbd-4b42-9e5b-0b971314b2bc", "children.jef-one-roles[0].domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "children.jef-one-roles[0].role_type": "value-001", "children.jef-one-roles[0].role_name": "Sample Name", "children.jef-one-roles[0].role_description": "value-001", "children.jef-one-roles[0].created": "2026-07-25T07:32:49Z", "children.jef-one-roles[0].updated": "2026-07-25T07:32:49Z", "children.jef-one-sessions[0].session_id": "aa17d122-7978-4a01-a33a-dedccbc383fb", "children.jef-one-sessions[0].domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "children.jef-one-sessions[0].employee_id": "8c67a1fa-3598-4002-b411-94a97ef0fedd", "children.jef-one-sessions[0].entity_id": "e885584f-41fc-4bf1-a4d8-1e3cb571a262", "children.jef-one-sessions[0].application_id": "4d9b707b-a359-4a08-be39-6705aa1938be", "children.jef-one-sessions[0].role_type": "value-001", "children.jef-one-sessions[0].role_name": "Sample Name", "children.jef-one-sessions[0].role_description": "value-001", "children.jef-one-sessions[0].status": "value-001", "children.jef-one-sessions[0].is_valid": "True", "children.jef-one-sessions[0].is_active": "True", "children.jef-one-sessions[0].expires_at": "2026-07-25T07:32:49Z", "children.jef-one-sessions[0].created": "2026-07-25T07:32:49Z", "children.jef-one-sessions[0].updated": "2026-07-25T07:32:49Z", "children.jef-one-sessions[0].verified_at": "2026-07-25T07:32:49Z", "children.jef-one-sessions[0].failure_code": "value-001", "children.jef-one-sessions[0].failure_reason": "value-001" } 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-domains-post-one" -H "Content-Type: application/json" --data-raw "{\"domain_id\": \"bc20da12-fb72-4822-9007-9b86d9978c43\", \"domain_name\": \"Sample Name\", \"is_active\": true, \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\", \"children\": {\"jef-one-applications\": [{\"application_id\": \"08a57185-e963-40ac-a7c4-7e562a7e9116\", \"domain_id\": \"bc20da12-fb72-4822-9007-9b86d9978c43\", \"application_name\": \"Sample Name\", \"is_active\": true, \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\"}], \"jef-one-employees\": [{\"employee_id\": \"db17ec27-b590-4aef-8ed0-fbd0c77cc099\", \"domain_id\": \"bc20da12-fb72-4822-9007-9b86d9978c43\", \"entity_id\": \"5a05efc7-6bf3-4a72-8713-37a0b397c1a8\", \"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\"}], \"jef-one-entities\": [{\"entity_id\": \"61ca5cf9-f8d1-448e-9e64-e45179f51132\", \"domain_id\": \"bc20da12-fb72-4822-9007-9b86d9978c43\", \"entity_number\": \"value-001\", \"entity_name\": \"Sample Name\", \"is_active\": true, \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\"}], \"jef-one-roles\": [{\"role_id\": \"82ba6ff1-0fbd-4b42-9e5b-0b971314b2bc\", \"domain_id\": \"bc20da12-fb72-4822-9007-9b86d9978c43\", \"role_type\": \"value-001\", \"role_name\": \"Sample Name\", \"role_description\": \"value-001\", \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\"}], \"jef-one-sessions\": [{\"session_id\": \"aa17d122-7978-4a01-a33a-dedccbc383fb\", \"domain_id\": \"bc20da12-fb72-4822-9007-9b86d9978c43\", \"employee_id\": \"8c67a1fa-3598-4002-b411-94a97ef0fedd\", \"entity_id\": \"e885584f-41fc-4bf1-a4d8-1e3cb571a262\", \"application_id\": \"4d9b707b-a359-4a08-be39-6705aa1938be\", \"role_type\": \"value-001\", \"role_name\": \"Sample Name\", \"role_description\": \"value-001\", \"status\": \"value-001\", \"is_valid\": true, \"is_active\": true, \"expires_at\": \"2026-07-25T07:32:49Z\", \"created\": \"2026-07-25T07:32:49Z\", \"updated\": \"2026-07-25T07:32:49Z\", \"verified_at\": \"2026-07-25T07:32:49Z\", \"failure_code\": \"value-001\", \"failure_reason\": \"value-001\"}]}}" PowerShell curl --------------- .. code-block:: powershell curl.exe -X POST "https://api.jefoffice.com/one/async-post/one-domains-post-one" -H "Content-Type: application/json" --data-raw '{"domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "domain_name": "Sample Name", "is_active": true, "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z", "children": {"jef-one-applications": [{"application_id": "08a57185-e963-40ac-a7c4-7e562a7e9116", "domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "application_name": "Sample Name", "is_active": true, "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z"}], "jef-one-employees": [{"employee_id": "db17ec27-b590-4aef-8ed0-fbd0c77cc099", "domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "entity_id": "5a05efc7-6bf3-4a72-8713-37a0b397c1a8", "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"}], "jef-one-entities": [{"entity_id": "61ca5cf9-f8d1-448e-9e64-e45179f51132", "domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "entity_number": "value-001", "entity_name": "Sample Name", "is_active": true, "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z"}], "jef-one-roles": [{"role_id": "82ba6ff1-0fbd-4b42-9e5b-0b971314b2bc", "domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "role_type": "value-001", "role_name": "Sample Name", "role_description": "value-001", "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z"}], "jef-one-sessions": [{"session_id": "aa17d122-7978-4a01-a33a-dedccbc383fb", "domain_id": "bc20da12-fb72-4822-9007-9b86d9978c43", "employee_id": "8c67a1fa-3598-4002-b411-94a97ef0fedd", "entity_id": "e885584f-41fc-4bf1-a4d8-1e3cb571a262", "application_id": "4d9b707b-a359-4a08-be39-6705aa1938be", "role_type": "value-001", "role_name": "Sample Name", "role_description": "value-001", "status": "value-001", "is_valid": true, "is_active": true, "expires_at": "2026-07-25T07:32:49Z", "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z", "verified_at": "2026-07-25T07:32:49Z", "failure_code": "value-001", "failure_reason": "value-001"}]}}'