Get requests
Changed onReturns a list of requests for your organization that is visible by the admin.
Request
- Base URLhttps://api.opal.dev/v1
- AuthHTTP bearer
Query parameters
A start date filter for the events.
An end date filter for the events.
Filter requests by their requester ID.
Filter requests by their target user ID.
Filter requests by the resource ID that was requested.
Filter requests by the group ID that was requested.
The pagination cursor value.
Number of results to return per page. Default is 200.
Boolean toggle for if it should only show pending requests.
Response
The list of requests.
Example response
{
"requests": [
{
"id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"organization_id": "w86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"requester_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"target_user_id": "r86c85d-0651-43e2-a748-d69d658418e8",
"target_group_id": "g86c85d-0651-43e2-a748-d69d658418e8",
"status": "pending",
"reason": "I need this resource.",
"duration_minutes": 1440,
"request_comments": [
{
"id": "4c86c85d-0651-43e2-a748-d69d658418e8",
"created_at": "2021-01-06T20:00:00Z",
"updated_at": "2021-01-06T20:00:00Z",
"request_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
"user_id": "c86c85d-0651-43e2-a748-d69d658418e8",
"comment": "This is a comment."
}
]
}
],
"cursor": "eyJjcmVhdGVkX2F0IjoiMjAyMS0wMS0wNlQyMDo0NzowMFoiLCJ2YWx1ZSI6ImFkbWluIn0="
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- warning
added the new
CALLOUTenum value to the////response property for the response status - warning
added the new
MULTI_SELECTenum value to the////response property for the response status
- warning