Skip to main content
Aria Knowledge Central

validate_admin_session_m Sample Call and Response

This example shows a client validating whether an existing administrative session identifier is still active. It is based on the validate_admin_session_m method as defined in methods_m_r73.yml, Admin Tools API.

This is a small utility method with a single documented argument beyond the shared client_no and auth_key fields, and a returns block that consists only of the standard error indicators, so this example covers the method’s entire input and output surface rather than a subset of it.

Sample call

{
  "rest_call": "validate_admin_session_m",
  "output_format": "json",
  "client_no": 700123,
  "auth_key": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6",
  "session_id": "8f14e45fceea167a5a36dedd4bea2543"
}

The rest_call and output_format fields are not part of the method’s own documented arguments. The REST layer adds them to every call: rest_call names the method being invoked, and output_format requests a JSON response rather than the default WDDX format. Within the method’s own arguments, client_no and auth_key identify and authenticate the client making the call, and both come from the shared param_defaults block. session_id is the only field the method itself declares, and it is required; it specifies the identifier of the administrative session to be validated, typically one issued earlier by an Aria administrative login or single-sign-on flow.

Sample response

{
  "error_code": 0,
  "error_msg": "OK"
}

An error_code of zero, paired with an error_msg of “OK,” indicates that the session identifier supplied on the call is currently valid. A nonzero error_code with a corresponding error_msg would indicate that the session is invalid or has expired. The method’s returns block consists only of these two fields, so there is no additional output to show.

TOP
  • Was this article helpful?