/one-employee-roles-post-one

Summary

  • Source repository: jef-systems/jef-one-backend

  • Source SHA: a8edf3d77c4689168400069ba74f46fd06c3178c

  • Source run id: 30149511957

  • Lambda function: jef-one-post-008

  • HTTP method: POST

  • API path: /one-employee-roles-post-one

  • Cloudflare path: /one/async-post/one-employee-roles-post-one

  • Endpoint URL: https://api.jefoffice.com/one/async-post/one-employee-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

Function

jef-one-post-008 Logical ID: jef-one:jef-one-employee-roles:post-one Order Number: 008

Module

jef-one

Action

post-one

Method

POST

Invocation Mode

ASYNC

Resource Path

/one-employee-roles-post-one Endpoint Name: jef-one-employee-roles-post-one

Table

jef-one-employee-roles

Primary Key

employee_role_id

API Gateway Response

status\_code

202

message

Request accepted for asynchronous processing.

Payload Example

employee\_role\_id

351619a5-1dd7-4891-b2f8-57588261324b

domain\_id

37bb1ca3-8401-4ad1-a455-f94e2aeccec7

employee\_id

e1cce5fb-7f75-4e50-88a8-a22a3eeca021

role\_id

27b3a056-9263-4f12-b26e-8f326836a5bb

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

Payload Schema

{
  "type": "object",
  "additionalProperties": "False",
  "payload_mode": "flat",
  "allow_children_wrapper": "False",
  "children_wrapper_field": "",
  "allow_batch": "False",
  "table": "jef-one-employee-roles",
  "primary_key": "employee_role_id",
  "required[0]": "domain_id",
  "required[1]": "employee_id",
  "required[2]": "role_id",
  "required[3]": "employee_number",
  "required[4]": "role_type",
  "required[5]": "role_name",
  "required[6]": "role_description",
  "properties.employee_role_id.field": "employee_role_id",
  "properties.employee_role_id.type": "S",
  "properties.employee_role_id.required": "False",
  "properties.employee_role_id.source_required": "True",
  "properties.employee_role_id.server_generated": "True",
  "properties.employee_role_id.autogenerated": "False",
  "properties.employee_role_id.frontend_autocomputed": "False",
  "properties.employee_role_id.format": "uuidv4",
  "properties.employee_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.employee_id.field": "employee_id",
  "properties.employee_id.type": "S",
  "properties.employee_id.required": "True",
  "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.role_id.field": "role_id",
  "properties.role_id.type": "S",
  "properties.role_id.required": "True",
  "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.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.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": "True",
  "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": "True",
  "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": "True",
  "properties.role_description.autogenerated": "False",
  "properties.role_description.frontend_autocomputed": "False",
  "properties.role_description.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": "[]",
  "root.type": "object",
  "root.attributes.employee_role_id.field": "employee_role_id",
  "root.attributes.employee_role_id.type": "S",
  "root.attributes.employee_role_id.required": "False",
  "root.attributes.employee_role_id.source_required": "True",
  "root.attributes.employee_role_id.server_generated": "True",
  "root.attributes.employee_role_id.autogenerated": "False",
  "root.attributes.employee_role_id.frontend_autocomputed": "False",
  "root.attributes.employee_role_id.format": "uuidv4",
  "root.attributes.employee_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.employee_id.field": "employee_id",
  "root.attributes.employee_id.type": "S",
  "root.attributes.employee_id.required": "True",
  "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.role_id.field": "role_id",
  "root.attributes.role_id.type": "S",
  "root.attributes.role_id.required": "True",
  "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.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.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": "True",
  "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": "True",
  "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": "True",
  "root.attributes.role_description.autogenerated": "False",
  "root.attributes.role_description.frontend_autocomputed": "False",
  "root.attributes.role_description.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

{
  "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

{
  "employee_role_id": "351619a5-1dd7-4891-b2f8-57588261324b",
  "domain_id": "37bb1ca3-8401-4ad1-a455-f94e2aeccec7",
  "employee_id": "e1cce5fb-7f75-4e50-88a8-a22a3eeca021",
  "role_id": "27b3a056-9263-4f12-b26e-8f326836a5bb",
  "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"
}

Response

{
  "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

curl -X POST "https://api.jefoffice.com/one/async-post/one-employee-roles-post-one" -H "Content-Type: application/json" --data-raw "{\"employee_role_id\": \"351619a5-1dd7-4891-b2f8-57588261324b\", \"domain_id\": \"37bb1ca3-8401-4ad1-a455-f94e2aeccec7\", \"employee_id\": \"e1cce5fb-7f75-4e50-88a8-a22a3eeca021\", \"role_id\": \"27b3a056-9263-4f12-b26e-8f326836a5bb\", \"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

curl.exe -X POST "https://api.jefoffice.com/one/async-post/one-employee-roles-post-one" -H "Content-Type: application/json" --data-raw '{"employee_role_id": "351619a5-1dd7-4891-b2f8-57588261324b", "domain_id": "37bb1ca3-8401-4ad1-a455-f94e2aeccec7", "employee_id": "e1cce5fb-7f75-4e50-88a8-a22a3eeca021", "role_id": "27b3a056-9263-4f12-b26e-8f326836a5bb", "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"}'