Skip to main content
Aria Knowledge Central

set_session_m Sample Call and Response

This example shows a registration or User Self Service application starting an Aria session for an account that the calling application has already identified, based on the set_session_m method defined in plsql_m_r73.yml.

This example covers starting a session using the Aria-assigned account number. It does not cover the user_id or client_acct_id fields, which are alternatives to acct_no for identifying the account, or the client_session_id field, which lets a caller supply its own session identifier alongside the one Aria generates.

Sample call

{
  "rest_call": "set_session_m",
  "output_format": "json",
  "client_no": 12345,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "acct_no": 700456123
}

The rest_call and output_format fields are added by the REST layer and are not part of the method's own argument list. The acct_no field belongs to a group of alternative identifiers, along with user_id and client_acct_id, exactly one of which is required; this example supplies acct_no, the Aria-assigned numeric identifier, in preference to the client-defined alternatives. Unlike set_session_auth_m, which independently authenticates a user ID and password combination as part of starting the session, set_session_m starts a session for an account that the calling application has already identified and verified by its own means, such as a prior registration step, so no password is passed in this call.

Sample response

{
  "session_id": "USS-SESSION-91133",
  "error_code": 0,
  "error_msg": "OK"
}

An error_code value of zero, together with an error_msg value of "OK", indicates that Aria started a session for the specified account and returned the client-assigned session_id for use in subsequent calls within that session. A nonzero error_code, paired with a descriptive error_msg, indicates that Aria could not start the session, for example because the acct_no did not correspond to an existing account. This example leaves out the error_details field, since that field is internal to Aria and is not returned to callers.

TOP
  • Was this article helpful?