/one-applications-patch-one

Summary

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

  • Source SHA: cabdf720f0e0bb4038428358fd150f2f95c55ff8

  • Source run id: 26362915503

  • Lambda function: jef-one-applications-patch-one

  • HTTP method: PATCH

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

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

  • Payload mode: json-body

Description

  • Function: jef-one-applications-patch-one

  • Module: jef-one

  • Action: patch-one

  • Method: PATCH

  • Invocation Mode: ASYNC

  • Resource Path: /one-applications-patch-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: 21ea80c8-aed9-494c-bd23-86f044b58c20

  • name: value_00

  • is\_active: True

  • created\_at: 2026-05-24T13:38:18Z

  • updated\_at: 2026-05-24T13:38:18Z

  • children.application\_credentials\[0\].application\_credential\_id: 4349d49d-8aab-4738-b7b5-64a1b4fd1c2f

  • children.application\_credentials\[0\].application\_id: 21ea80c8-aed9-494c-bd23-86f044b58c20

  • children.application\_credentials\[0\].entity\_id: d49b8a8c-30d9-4172-bb72-71855d5804c2

  • children.application\_credentials\[0\].application\_name: value_00

  • children.application\_credentials\[0\].entity\_number: 1000

  • children.application\_credentials\[0\].is\_active: True

  • children.application\_credentials\[0\].created\_at: 2026-05-24T13:38:18Z

  • children.application\_credentials\[0\].updated\_at: 2026-05-24T13:38:18Z

Payload Schema

{
  "root.type": "M",
  "root.required": "True",
  "root.attributes.application_id.type": "S",
  "root.attributes.application_id.required": "True",
  "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.type": "S",
  "root.attributes.name.required": "False",
  "root.attributes.name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.is_active.type": "BOOL",
  "root.attributes.is_active.required": "False",
  "root.attributes.is_active.regex": "^(true|false)$",
  "root.attributes.created_at.type": "S",
  "root.attributes.created_at.required": "False",
  "root.attributes.created_at.format": "iso8601",
  "root.attributes.created_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.updated_at.type": "S",
  "root.attributes.updated_at.required": "False",
  "root.attributes.updated_at.format": "iso8601",
  "root.attributes.updated_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.children.type": "M",
  "root.attributes.children.required": "False",
  "root.attributes.children.attributes.application_credentials.type": "L",
  "root.attributes.children.attributes.application_credentials.required": "False",
  "root.attributes.children.attributes.application_credentials.items.type": "M",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_credential_id.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_credential_id.required": "True",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_credential_id.format": "uuidv4",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_credential_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.children.attributes.application_credentials.items.attributes.application_id.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_id.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_id.format": "uuidv4",
  "root.attributes.children.attributes.application_credentials.items.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.children.attributes.application_credentials.items.attributes.entity_id.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.entity_id.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.entity_id.format": "uuidv4",
  "root.attributes.children.attributes.application_credentials.items.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.children.attributes.application_credentials.items.attributes.application_name.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_name.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.application_name.regex": "^[A-Za-z0-9 .,'_-]{1,120}$",
  "root.attributes.children.attributes.application_credentials.items.attributes.entity_number.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.entity_number.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.entity_number.regex": "^[0-9]{4}$",
  "root.attributes.children.attributes.application_credentials.items.attributes.is_active.type": "BOOL",
  "root.attributes.children.attributes.application_credentials.items.attributes.is_active.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.is_active.regex": "^(true|false)$",
  "root.attributes.children.attributes.application_credentials.items.attributes.created_at.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.created_at.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.created_at.format": "iso8601",
  "root.attributes.children.attributes.application_credentials.items.attributes.created_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.children.attributes.application_credentials.items.attributes.updated_at.type": "S",
  "root.attributes.children.attributes.application_credentials.items.attributes.updated_at.required": "False",
  "root.attributes.children.attributes.application_credentials.items.attributes.updated_at.format": "iso8601",
  "root.attributes.children.attributes.application_credentials.items.attributes.updated_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$"
}

Response Schema

{
  "root.type": "M",
  "root.required": "True",
  "root.attributes.is_accepted.type": "BOOL",
  "root.attributes.is_accepted.required": "True",
  "root.attributes.message.type": "S",
  "root.attributes.message.required": "True",
  "root.attributes.request_id.type": "S",
  "root.attributes.request_id.required": "False"
}

Request Payload

{
  "application_id": "21ea80c8-aed9-494c-bd23-86f044b58c20",
  "name": "value_00",
  "is_active": "True",
  "created_at": "2026-05-24T13:38:18Z",
  "updated_at": "2026-05-24T13:38:18Z",
  "children.application_credentials[0].application_credential_id": "4349d49d-8aab-4738-b7b5-64a1b4fd1c2f",
  "children.application_credentials[0].application_id": "21ea80c8-aed9-494c-bd23-86f044b58c20",
  "children.application_credentials[0].entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2",
  "children.application_credentials[0].application_name": "value_00",
  "children.application_credentials[0].entity_number": "1000",
  "children.application_credentials[0].is_active": "True",
  "children.application_credentials[0].created_at": "2026-05-24T13:38:18Z",
  "children.application_credentials[0].updated_at": "2026-05-24T13:38:18Z"
}

Response

{
  "root.type": "M",
  "root.required": "True",
  "root.attributes.is_accepted.type": "BOOL",
  "root.attributes.is_accepted.required": "True",
  "root.attributes.message.type": "S",
  "root.attributes.message.required": "True",
  "root.attributes.request_id.type": "S",
  "root.attributes.request_id.required": "False"
}

CMD curl

curl -X PATCH "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-applications-patch-one" -H "Content-Type: application/json" --data-raw "{\"application_id\": \"21ea80c8-aed9-494c-bd23-86f044b58c20\", \"name\": \"value_00\", \"is_active\": true, \"created_at\": \"2026-05-24T13:38:18Z\", \"updated_at\": \"2026-05-24T13:38:18Z\", \"children\": {\"application_credentials\": [{\"application_credential_id\": \"4349d49d-8aab-4738-b7b5-64a1b4fd1c2f\", \"application_id\": \"21ea80c8-aed9-494c-bd23-86f044b58c20\", \"entity_id\": \"d49b8a8c-30d9-4172-bb72-71855d5804c2\", \"application_name\": \"value_00\", \"entity_number\": \"1000\", \"is_active\": true, \"created_at\": \"2026-05-24T13:38:18Z\", \"updated_at\": \"2026-05-24T13:38:18Z\"}]}}"

PowerShell curl

curl.exe -X PATCH "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-applications-patch-one" -H "Content-Type: application/json" --data-raw '{"application_id": "21ea80c8-aed9-494c-bd23-86f044b58c20", "name": "value_00", "is_active": true, "created_at": "2026-05-24T13:38:18Z", "updated_at": "2026-05-24T13:38:18Z", "children": {"application_credentials": [{"application_credential_id": "4349d49d-8aab-4738-b7b5-64a1b4fd1c2f", "application_id": "21ea80c8-aed9-494c-bd23-86f044b58c20", "entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "application_name": "value_00", "entity_number": "1000", "is_active": true, "created_at": "2026-05-24T13:38:18Z", "updated_at": "2026-05-24T13:38:18Z"}]}}'