/one-sessions-post-one

Summary

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

  • Source SHA: 255c303dcc5f304ce39a65a64fefbf61a44ac8e2

  • Source run id: 25995611060

  • Lambda function: jef-one-sessions-post-one

  • HTTP method: POST

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

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

  • Payload mode: json-body

Description

  • Function: jef-one-sessions-post-one

  • Module: jef-one

  • Action: post-one

  • Method: POST

  • Invocation Mode: ASYNC

  • Resource Path: /one-sessions-post-one

  • Table: jef-one-sessions

  • Primary Key: session_id

API Gateway Response

  • status\_code: 202

  • message: Request accepted for asynchronous processing.

Payload Example

  • session\_id: 4dc84733-ce2a-461b-8017-4e77b3f99a66

  • user\_id: 5d604ee6-02b3-4678-a898-6293b635b555

  • entity\_id: d49b8a8c-30d9-4172-bb72-71855d5804c2

  • session\_entity\_field: mobile_application_id

  • session\_entity\_field\_value: 18287ac0-4d5a-4da0-9166-24b4e0b4a038

  • mobile\_application\_id: 16b06bf7-7f70-454d-8947-ab94fdb81ada

  • desktop\_application\_id: e888a8ca-0c65-44d7-af19-a15311427125

  • entity\_number: value_001

  • employee\_number: value_001

  • application\_number: value_001

  • application\_type: mobile

  • status: pending

  • is\_valid: True

  • is\_active: True

  • session\_context: {}

  • expires\_at: 2026-05-17T15:49:56Z

  • created\_at: 2026-05-17T15:49:56Z

  • updated\_at: 2026-05-17T15:49:56Z

  • verified\_at: 2026-05-17T15:49:56Z

  • failure\_reason: Login timeout during sync

Payload Schema

{
  "root.type": "M",
  "root.required": "True",
  "root.attributes.session_id.type": "S",
  "root.attributes.session_id.required": "True",
  "root.attributes.session_id.format": "uuidv4",
  "root.attributes.session_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.user_id.type": "S",
  "root.attributes.user_id.required": "True",
  "root.attributes.user_id.format": "uuidv4",
  "root.attributes.user_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.entity_id.type": "S",
  "root.attributes.entity_id.required": "True",
  "root.attributes.entity_id.format": "uuidv4",
  "root.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.session_entity_field.type": "S",
  "root.attributes.session_entity_field.required": "True",
  "root.attributes.session_entity_field.regex": "^[A-Za-z][A-Za-z0-9_]{0,127}$",
  "root.attributes.session_entity_field_value.type": "S",
  "root.attributes.session_entity_field_value.required": "True",
  "root.attributes.session_entity_field_value.format": "uuidv4",
  "root.attributes.session_entity_field_value.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.mobile_application_id.type": "S",
  "root.attributes.mobile_application_id.required": "False",
  "root.attributes.mobile_application_id.format": "uuidv4",
  "root.attributes.mobile_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.desktop_application_id.type": "S",
  "root.attributes.desktop_application_id.required": "False",
  "root.attributes.desktop_application_id.format": "uuidv4",
  "root.attributes.desktop_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.entity_number.type": "S",
  "root.attributes.entity_number.required": "True",
  "root.attributes.entity_number.regex": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
  "root.attributes.employee_number.type": "S",
  "root.attributes.employee_number.required": "True",
  "root.attributes.employee_number.regex": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
  "root.attributes.application_number.type": "S",
  "root.attributes.application_number.required": "True",
  "root.attributes.application_number.regex": "^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$",
  "root.attributes.application_type.type": "S",
  "root.attributes.application_type.required": "True",
  "root.attributes.application_type.regex": "^(mobile|desktop|web)$",
  "root.attributes.status.type": "S",
  "root.attributes.status.required": "True",
  "root.attributes.status.regex": "^(pending|verified|failed|expired|revoked)$",
  "root.attributes.is_valid.type": "BOOL",
  "root.attributes.is_valid.required": "True",
  "root.attributes.is_valid.regex": "^(true|false)$",
  "root.attributes.is_active.type": "BOOL",
  "root.attributes.is_active.required": "True",
  "root.attributes.is_active.regex": "^(true|false)$",
  "root.attributes.session_context.type": "M",
  "root.attributes.session_context.required": "True",
  "root.attributes.session_context.regex": "^.*$",
  "root.attributes.expires_at.type": "S",
  "root.attributes.expires_at.required": "True",
  "root.attributes.expires_at.format": "iso8601",
  "root.attributes.expires_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.created_at.type": "S",
  "root.attributes.created_at.required": "True",
  "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": "True",
  "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.verified_at.type": "S",
  "root.attributes.verified_at.required": "False",
  "root.attributes.verified_at.format": "iso8601",
  "root.attributes.verified_at.regex": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,6})?Z?$",
  "root.attributes.failure_reason.type": "S",
  "root.attributes.failure_reason.required": "False",
  "root.attributes.failure_reason.regex": "^.{0,500}$"
}

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

{
  "session_id": "4dc84733-ce2a-461b-8017-4e77b3f99a66",
  "user_id": "5d604ee6-02b3-4678-a898-6293b635b555",
  "entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2",
  "session_entity_field": "mobile_application_id",
  "session_entity_field_value": "18287ac0-4d5a-4da0-9166-24b4e0b4a038",
  "mobile_application_id": "16b06bf7-7f70-454d-8947-ab94fdb81ada",
  "desktop_application_id": "e888a8ca-0c65-44d7-af19-a15311427125",
  "entity_number": "value_001",
  "employee_number": "value_001",
  "application_number": "value_001",
  "application_type": "mobile",
  "status": "pending",
  "is_valid": "True",
  "is_active": "True",
  "session_context": "{}",
  "expires_at": "2026-05-17T15:49:56Z",
  "created_at": "2026-05-17T15:49:56Z",
  "updated_at": "2026-05-17T15:49:56Z",
  "verified_at": "2026-05-17T15:49:56Z",
  "failure_reason": "Login timeout during sync"
}

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 POST "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-sessions-post-one" -H "Content-Type: application/json" --data-raw "{\"session_id\": \"4dc84733-ce2a-461b-8017-4e77b3f99a66\", \"user_id\": \"5d604ee6-02b3-4678-a898-6293b635b555\", \"entity_id\": \"d49b8a8c-30d9-4172-bb72-71855d5804c2\", \"session_entity_field\": \"mobile_application_id\", \"session_entity_field_value\": \"18287ac0-4d5a-4da0-9166-24b4e0b4a038\", \"mobile_application_id\": \"16b06bf7-7f70-454d-8947-ab94fdb81ada\", \"desktop_application_id\": \"e888a8ca-0c65-44d7-af19-a15311427125\", \"entity_number\": \"value_001\", \"employee_number\": \"value_001\", \"application_number\": \"value_001\", \"application_type\": \"mobile\", \"status\": \"pending\", \"is_valid\": true, \"is_active\": true, \"session_context\": {}, \"expires_at\": \"2026-05-17T15:49:56Z\", \"created_at\": \"2026-05-17T15:49:56Z\", \"updated_at\": \"2026-05-17T15:49:56Z\", \"verified_at\": \"2026-05-17T15:49:56Z\", \"failure_reason\": \"Login timeout during sync\"}"

PowerShell curl

curl.exe -X POST "https://mfr670zvsh.execute-api.ap-southeast-1.amazonaws.com/prod/one-sessions-post-one" -H "Content-Type: application/json" --data-raw '{"session_id": "4dc84733-ce2a-461b-8017-4e77b3f99a66", "user_id": "5d604ee6-02b3-4678-a898-6293b635b555", "entity_id": "d49b8a8c-30d9-4172-bb72-71855d5804c2", "session_entity_field": "mobile_application_id", "session_entity_field_value": "18287ac0-4d5a-4da0-9166-24b4e0b4a038", "mobile_application_id": "16b06bf7-7f70-454d-8947-ab94fdb81ada", "desktop_application_id": "e888a8ca-0c65-44d7-af19-a15311427125", "entity_number": "value_001", "employee_number": "value_001", "application_number": "value_001", "application_type": "mobile", "status": "pending", "is_valid": true, "is_active": true, "session_context": {}, "expires_at": "2026-05-17T15:49:56Z", "created_at": "2026-05-17T15:49:56Z", "updated_at": "2026-05-17T15:49:56Z", "verified_at": "2026-05-17T15:49:56Z", "failure_reason": "Login timeout during sync"}'