Lists work request logs
GET {{baseUrl}}/workRequests/:workRequestId/logs?limit=10&sortBy=timeAccepted&sortOrder=ASC
Return a (paginated) list of logs for a given work request.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
page | string | The position at which to start retrieving results. This must come from the opc-next-page header field of a previous response. | |
limit | number | The maximum number of items to return. | |
sortBy | string | The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. | |
sortOrder | string | The sort order to use, either 'ASC' or 'DESC'. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
RESPONSES
status: OK
{"items":[{"message":"mollit deserunt adipisicing","timestamp":"2009-03-18T03:37:43.578Z"},{"message":"deserunt ut officia","timestamp":"1974-04-12T02:42:08.748Z"}]}