Skip to main content

Open or resume the system session

POST 

/sessions/system

Returns the deployment's one system session, creating it the first time, and starts no turn. The system session runs the system agent in the control agent space, in a directory under the controller's state directory that no client can open with POST /sessions/open. It takes no request body and no X-Session-ID header; the response carries the session ID in its body and in the X-Session-ID response header.

Send the system session messages over the WebSocket with system set. Its agent space cannot be changed with POST /session/reconfigure.

While PEEN_SYSTEM_AGENT is off this returns 403 SYSTEM_AGENT_OFF and creates nothing.

Responses​

The system session, and whether this call created it.

Response Headers
    X-Session-ID

    The session this response belongs to. For session-scoped requests it echoes the X-Session-ID request header; for POST /sessions/open and POST /sessions/system it is the session that was opened or created.

    X-Request-ID

    The request's correlation ID. When the request carried an X-Request-ID header holding a UUID, Peen echoes it; otherwise Peen generates a new UUID. The controller log records the same value for this request.