Set Live Session
This command sets the Live state of the session to the value of active, where "true" means Live and "false" means not-Live. You specify the session using the session ID.
Note
When Multi-site Live was implemented, the default was changed to not-Live. Previously sessions were Live by default.
Authorizations: All
Requests
setLiveSession sessionID active |
Parameters
| Parameter | Description/Values |
|---|---|
| sessionId | The ID of a HMP session. |
| active | The Live state of the session, either:
|
Result
Success
OK |
Error
| Error | Description |
|---|---|
| Calling setLiveSession requires 2 parameters. |
| The sessionId provided must be a UUID. |
| active must be true or false |
| The 'session' with UUID 'sessionId' was not found. |
Example
The first example toggles the session Live setting/state to Live (active = "true"). The system returns OK.
|
The second example toggles the session Live setting/state to not-Live (active = "false"). The system returns OK.
|