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
Key | Datatype | Required | Description |
---|---|---|---|
page | string | The page token representing the page from where the next set of paginated results | |
are retrieved. This is usually retrieved from a previous list call. | |||
limit | number | The maximum number of records returned in the paginated response. | |
sortBy | string | The field to sort by. Only one sort order may be provided and the default order for timeAccepted is descending. | |
sortOrder | string | The option to sort information in ascending (‘ASC’) or descending (‘DESC’) order. Ascending order is the default order. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
RESPONSES
status: OK
{"items":[{"id":"\u003cinteger\u003e","workRequestId":"\u003cstring\u003e","message":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e"},{"id":"\u003cinteger\u003e","workRequestId":"\u003cstring\u003e","message":"\u003cstring\u003e","timestamp":"\u003cdateTime\u003e"}]}