Lists work request logs

GET {{baseUrl}}/workRequests/:workRequestId/logs?page=<string>&limit=10&sortBy=timeAccepted&sortOrder=ASC

Returns a paginated list of logs for a given work request.

Request Params

KeyDatatypeRequiredDescription
pagestringThe page token representing the page from where the next set of paginated results
are retrieved. This is usually retrieved from a previous list call.
limitnumberThe maximum number of records returned in the paginated response.
sortBystringThe field to sort by. Only one sort order may be provided and the default order for timeAccepted is descending.
sortOrderstringThe option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;workRequestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;},{&quot;id&quot;:&quot;\u003cinteger\u003e&quot;,&quot;workRequestId&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;timestamp&quot;:&quot;\u003cdateTime\u003e&quot;}]}