Queue a message for the PCG backend. Primarily for tools within the PCG ecosystem: the message is stored in an internal queue table and picked up by the backend.
Change Note: dedicated endpoint using POJO pattern, replaces exec2.jsp dispatch
| HTTP Status | Error Code | Description |
|---|---|---|
| 403 | security | no authenticated session (or anonymous user) |
| 400 | error | neither msg nor t given, or msg exceeds 65535 chars |
Result of queuing a message for the PCG backend (msgqueue table).
| # | Field | Type | Description |
|---|---|---|---|
| 0 | action | string | the action that was performed |
| 1 | result | string | exit code: ok (message queued), duplicate (a message with the same unique id was already queued - nothing was written) |
| 2 | open | int | number of messages currently waiting in the queue (not yet processed by the backend) |
| 3 | last | string | unique id of the most recently processed message, empty if none was processed yet |
Data (1 record)
| action | result | open | last |
|---|---|---|---|
| Msg | security | 0 |