.. AUTO-GENERATED FILE. DO NOT EDIT. /one-roles-post-one =================== Summary ------- - **Source repository:** ``jef-systems/jef-one-backend`` - **Source SHA:** ``a8edf3d77c4689168400069ba74f46fd06c3178c`` - **Source run id:** ``30149511957`` - **Lambda function:** ``jef-one-post-010`` - **HTTP method:** ``POST`` - **API path:** ``/one-roles-post-one`` - **Cloudflare path:** ``/one/async-post/one-roles-post-one`` - **Endpoint URL:** ``https://api.jefoffice.com/one/async-post/one-roles-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-010 Logical ID: jef-one:jef-one-roles:post-one Order Number: 010 * - ``Module`` - jef-one * - ``Action`` - post-one * - ``Method`` - POST * - ``Invocation Mode`` - ASYNC * - ``Resource Path`` - /one-roles-post-one Endpoint Name: jef-one-roles-post-one * - ``Table`` - jef-one-roles * - ``Primary Key`` - role\_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 * - ``role\_id`` - 7ab2e4b3-ba4c-4b85-a4e8-25684481a75a * - ``domain\_id`` - a53fa24b-e7c7-4ccc-9b31-96f548381b25 * - ``role\_type`` - value-001 * - ``role\_name`` - Sample Name * - ``role\_description`` - value-001 * - ``created`` - 2026-07-25T07:32:49Z * - ``updated`` - 2026-07-25T07:32:49Z Payload Schema -------------- .. code-block:: json { "type": "object", "additionalProperties": "False", "payload_mode": "flat", "allow_children_wrapper": "False", "children_wrapper_field": "", "allow_batch": "False", "table": "jef-one-roles", "primary_key": "role_id", "required[0]": "domain_id", "required[1]": "role_type", "required[2]": "role_name", "required[3]": "role_description", "properties.role_id.field": "role_id", "properties.role_id.type": "S", "properties.role_id.required": "False", "properties.role_id.source_required": "True", "properties.role_id.server_generated": "True", "properties.role_id.autogenerated": "False", "properties.role_id.frontend_autocomputed": "False", "properties.role_id.format": "uuidv4", "properties.role_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.role_type.field": "role_type", "properties.role_type.type": "S", "properties.role_type.required": "True", "properties.role_type.source_required": "True", "properties.role_type.server_generated": "False", "properties.role_type.autogenerated": "False", "properties.role_type.frontend_autocomputed": "False", "properties.role_type.regex": "^(user|admin)$", "properties.role_name.field": "role_name", "properties.role_name.type": "S", "properties.role_name.required": "True", "properties.role_name.source_required": "True", "properties.role_name.server_generated": "False", "properties.role_name.autogenerated": "False", "properties.role_name.frontend_autocomputed": "False", "properties.role_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "properties.role_description.field": "role_description", "properties.role_description.type": "S", "properties.role_description.required": "True", "properties.role_description.source_required": "True", "properties.role_description.server_generated": "False", "properties.role_description.autogenerated": "False", "properties.role_description.frontend_autocomputed": "False", "properties.role_description.regex": "^.{1,500}$", "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": "[]", "root.type": "object", "root.attributes.role_id.field": "role_id", "root.attributes.role_id.type": "S", "root.attributes.role_id.required": "False", "root.attributes.role_id.source_required": "True", "root.attributes.role_id.server_generated": "True", "root.attributes.role_id.autogenerated": "False", "root.attributes.role_id.frontend_autocomputed": "False", "root.attributes.role_id.format": "uuidv4", "root.attributes.role_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.role_type.field": "role_type", "root.attributes.role_type.type": "S", "root.attributes.role_type.required": "True", "root.attributes.role_type.source_required": "True", "root.attributes.role_type.server_generated": "False", "root.attributes.role_type.autogenerated": "False", "root.attributes.role_type.frontend_autocomputed": "False", "root.attributes.role_type.regex": "^(user|admin)$", "root.attributes.role_name.field": "role_name", "root.attributes.role_name.type": "S", "root.attributes.role_name.required": "True", "root.attributes.role_name.source_required": "True", "root.attributes.role_name.server_generated": "False", "root.attributes.role_name.autogenerated": "False", "root.attributes.role_name.frontend_autocomputed": "False", "root.attributes.role_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$", "root.attributes.role_description.field": "role_description", "root.attributes.role_description.type": "S", "root.attributes.role_description.required": "True", "root.attributes.role_description.source_required": "True", "root.attributes.role_description.server_generated": "False", "root.attributes.role_description.autogenerated": "False", "root.attributes.role_description.frontend_autocomputed": "False", "root.attributes.role_description.regex": "^.{1,500}$", "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 { "role_id": "7ab2e4b3-ba4c-4b85-a4e8-25684481a75a", "domain_id": "a53fa24b-e7c7-4ccc-9b31-96f548381b25", "role_type": "value-001", "role_name": "Sample Name", "role_description": "value-001", "created": "2026-07-25T07:32:49Z", "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-roles-post-one" -H "Content-Type: application/json" --data-raw "{\"role_id\": \"7ab2e4b3-ba4c-4b85-a4e8-25684481a75a\", \"domain_id\": \"a53fa24b-e7c7-4ccc-9b31-96f548381b25\", \"role_type\": \"value-001\", \"role_name\": \"Sample Name\", \"role_description\": \"value-001\", \"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-roles-post-one" -H "Content-Type: application/json" --data-raw '{"role_id": "7ab2e4b3-ba4c-4b85-a4e8-25684481a75a", "domain_id": "a53fa24b-e7c7-4ccc-9b31-96f548381b25", "role_type": "value-001", "role_name": "Sample Name", "role_description": "value-001", "created": "2026-07-25T07:32:49Z", "updated": "2026-07-25T07:32:49Z"}'