This object has two POST calls, one for login and one for logout.

POST /tspublic/v1/session/login

This call takes a APPLICATION_FORM_URLENCODED payload containing a username, a password, and an optional rememberme flag. If you do not supply the optional flag, the system uses the default false value.

Inputs

Parameter Description
username Username of the user to log in as.
password Password of the user to log in as.
rememberme A flag indicating if the user session needs to be remembered. Defaults to false.

Returns

No object is returned.

Status Codes

Code Description
204 On successful login.
401 On failure to login

POST /tspublic/v1/session/logout

This call logs a user out of an existing session.

Returns

No object is returned.

Status Codes

Code Description
204 On successful logout.
401 On failure or when unauthorized to call.