List Compartment's Work Requests

GET {{baseUrl}}/workRequests?compartmentId={{compartment_ocid}}

Returns a page of work requests for the specified compartment.

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
compartmentIdstring(Required) List the Digital Assistant instances that belong to this compartment.
odaInstanceIdstringList only the information for this Digital Assistant instance.
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 TIME_ACCEPTED.

The default sort order for the time fields is descending. The default order for DISPLAYNAME and STATUS is ascending.default: TIME_ACCEPTED | | 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

[{"requestAction":"VERSION_SKILL","status":"CANCELED","id":"culpa cupidatat esse","compartmentId":"adipisicing","odaInstanceId":"incididunt consequat tempor","resources":[{"resourceAction":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"status":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"statusMessage":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"resourceAction":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"status":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"statusMessage":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]},{"requestAction":"CLONE_DIGITAL_ASSISTANT","status":"ACCEPTED","id":"adipisicing velit","compartmentId":"do qui occ","odaInstanceId":"pariatur laboris proident aliquip enim","resources":[{"resourceAction":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"status":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"statusMessage":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"resourceAction":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceId":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"status":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"resourceUri":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"statusMessage":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}]}]