List Work Request Log Messages

GET {{baseUrl}}/workRequests/:workRequestId/logs?limit=100&sortBy=TIMESTAMP&sortOrder=DESC

Returns a page of of log messages for a given work request.

If the opc-next-page header appears in the response, then there are more items to retrieve. To get the next page in the subsequent GET request, include the header's value as the page query parameter.

Request Params

KeyDatatypeRequiredDescription
pagestringThe page at which to start retrieving results.

You get this value from the opc-next-page header in a previous list request. To retireve the first page, omit this query parameter.

Example: MToxMA== | | limit | number | | The maximum number of items to return per page. | | sortBy | string | | The field to sort by. You can specify only one sort order. If no value is specified, then the default is TIMESTAMP.

The default sort order for both TIMESTAMP and MESSAGE is ascending. | | sortOrder | string | | Sort the results in this order, use either ASC (ascending) or DESC (descending). |

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing. This value is included in the opc-request-id response header.
Acceptstring

RESPONSES

status: OK

[{"message":"sint","timeStamp":"1966-05-21T11:15:47.232Z"},{"message":"velit sed mollit","timeStamp":"2012-03-09T11:49:28.137Z"}]