/one-applications-post-one

Summary

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

  • Source SHA: e6d90f29ab4b076938829f02d6199b3d644ba174

  • Source run id: 28388871773

  • Lambda function: jef-one-post-001

  • HTTP method: POST

  • API path: /one-applications-post-one

  • Endpoint URL: https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-applications-post-one

  • Payload mode: json-body

Description

Function

jef-one-post-001 Logical ID: jef-one:jef-one-applications:post-one Order Number: 001

Module

jef-one

Action

post-one

Method

POST

Invocation Mode

ASYNC

Resource Path

/one-applications-post-one Endpoint Name: jef-one-applications-post-one

Table

jef-one-applications

Primary Key

application_id

API Gateway Response

status\_code

202

message

Request accepted for asynchronous processing.

Payload Example

application\_id

8d717c11-d902-4234-a3b4-fc42d7bcc8a8

name

value-001

is\_active

True

created

2026-06-29T16:55:47Z

updated

2026-06-29T16:55:47Z

children.jef-one-application-credentials\[0\].application\_credential\_id

1de03902-a0ed-47ba-96d1-179ee4888c79

children.jef-one-application-credentials\[0\].application\_id

8d717c11-d902-4234-a3b4-fc42d7bcc8a8

children.jef-one-application-credentials\[0\].entity\_id

78a636ad-a475-412e-9c71-4ff3d8b8cce9

children.jef-one-application-credentials\[0\].application\_name

Sample Name

children.jef-one-application-credentials\[0\].entity\_number

value-001

children.jef-one-application-credentials\[0\].is\_active

True

children.jef-one-application-credentials\[0\].created

2026-06-29T16:55:47Z

children.jef-one-application-credentials\[0\].updated

2026-06-29T16:55:47Z

Payload Schema

{
  "type": "object",
  "additionalProperties": "False",
  "payload_mode": "parent-plus-children-wrapper",
  "allow_children_wrapper": "True",
  "children_wrapper_field": "children",
  "allow_batch": "False",
  "table": "jef-one-applications",
  "primary_key": "application_id",
  "required[0]": "name",
  "properties.application_id.field": "application_id",
  "properties.application_id.type": "S",
  "properties.application_id.required": "False",
  "properties.application_id.source_required": "True",
  "properties.application_id.server_generated": "True",
  "properties.application_id.autogenerated": "False",
  "properties.application_id.frontend_autocomputed": "False",
  "properties.application_id.format": "uuidv4",
  "properties.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}$",
  "properties.name.field": "name",
  "properties.name.type": "S",
  "properties.name.required": "True",
  "properties.name.source_required": "True",
  "properties.name.server_generated": "False",
  "properties.name.autogenerated": "False",
  "properties.name.frontend_autocomputed": "False",
  "properties.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-applications",
  "children[0].child_table": "jef-one-application-credentials",
  "children[0].parent_key": "application_id",
  "children[0].child_foreign_key": "application_id",
  "children[0].child_index_name": "gsi_1",
  "children[0].child_index_key": "gsi_1_pk",
  "children[0].aliases[0]": "jef-one-application-credentials",
  "children[0].aliases[1]": "application-credentials",
  "children[0].aliases[2]": "one-application-credentials",
  "children[0].aliases[3]": "jef_one_application_credentials",
  "children[0].aliases[4]": "application_credentials",
  "children[0].aliases[5]": "one_application_credentials",
  "children[0].aliases[6]": "credentials",
  "root.type": "object",
  "root.attributes.application_id.field": "application_id",
  "root.attributes.application_id.type": "S",
  "root.attributes.application_id.required": "False",
  "root.attributes.application_id.source_required": "True",
  "root.attributes.application_id.server_generated": "True",
  "root.attributes.application_id.autogenerated": "False",
  "root.attributes.application_id.frontend_autocomputed": "False",
  "root.attributes.application_id.format": "uuidv4",
  "root.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.name.field": "name",
  "root.attributes.name.type": "S",
  "root.attributes.name.required": "True",
  "root.attributes.name.source_required": "True",
  "root.attributes.name.server_generated": "False",
  "root.attributes.name.autogenerated": "False",
  "root.attributes.name.frontend_autocomputed": "False",
  "root.attributes.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

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

{
  "application_id": "8d717c11-d902-4234-a3b4-fc42d7bcc8a8",
  "name": "value-001",
  "is_active": "True",
  "created": "2026-06-29T16:55:47Z",
  "updated": "2026-06-29T16:55:47Z",
  "children.jef-one-application-credentials[0].application_credential_id": "1de03902-a0ed-47ba-96d1-179ee4888c79",
  "children.jef-one-application-credentials[0].application_id": "8d717c11-d902-4234-a3b4-fc42d7bcc8a8",
  "children.jef-one-application-credentials[0].entity_id": "78a636ad-a475-412e-9c71-4ff3d8b8cce9",
  "children.jef-one-application-credentials[0].application_name": "Sample Name",
  "children.jef-one-application-credentials[0].entity_number": "value-001",
  "children.jef-one-application-credentials[0].is_active": "True",
  "children.jef-one-application-credentials[0].created": "2026-06-29T16:55:47Z",
  "children.jef-one-application-credentials[0].updated": "2026-06-29T16:55:47Z"
}

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://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-applications-post-one" -H "Content-Type: application/json" --data-raw "{\"application_id\": \"8d717c11-d902-4234-a3b4-fc42d7bcc8a8\", \"name\": \"value-001\", \"is_active\": true, \"created\": \"2026-06-29T16:55:47Z\", \"updated\": \"2026-06-29T16:55:47Z\", \"children\": {\"jef-one-application-credentials\": [{\"application_credential_id\": \"1de03902-a0ed-47ba-96d1-179ee4888c79\", \"application_id\": \"8d717c11-d902-4234-a3b4-fc42d7bcc8a8\", \"entity_id\": \"78a636ad-a475-412e-9c71-4ff3d8b8cce9\", \"application_name\": \"Sample Name\", \"entity_number\": \"value-001\", \"is_active\": true, \"created\": \"2026-06-29T16:55:47Z\", \"updated\": \"2026-06-29T16:55:47Z\"}]}}"

PowerShell curl

curl.exe -X POST "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-applications-post-one" -H "Content-Type: application/json" --data-raw '{"application_id": "8d717c11-d902-4234-a3b4-fc42d7bcc8a8", "name": "value-001", "is_active": true, "created": "2026-06-29T16:55:47Z", "updated": "2026-06-29T16:55:47Z", "children": {"jef-one-application-credentials": [{"application_credential_id": "1de03902-a0ed-47ba-96d1-179ee4888c79", "application_id": "8d717c11-d902-4234-a3b4-fc42d7bcc8a8", "entity_id": "78a636ad-a475-412e-9c71-4ff3d8b8cce9", "application_name": "Sample Name", "entity_number": "value-001", "is_active": true, "created": "2026-06-29T16:55:47Z", "updated": "2026-06-29T16:55:47Z"}]}}'