Create Past Grants
Search Past Grants
client.search.createPastGrants(SearchCreatePastGrantsParamsbody?, RequestOptionsoptions?): expandedunionlistunionnextPageTokenstringSearchCreatePastGrantsResponse
post/api/v1/search/past-grants
Invokes the c1.api.app.v1.AppEntitlementUserBindingService.SearchPastGrants method.
Parameters
bodyappEntitlementRefsunionappIdsunionappUserRefsunionexpandMaskAppEntitlementUserBindingExpandHistoryMaskpageSizenumberpageTokenstringSearchCreatePastGrantsParams
Returns
SearchCreatePastGrantsResponse
The SearchPastGrantsResponse message contains a list of past grants and a nextPageToken if applicable.
Request example TypeScript
import ConductoroneSDK from 'conductorone-sdk';
const client = new ConductoroneSDK({
apiKey: 'My API Key',
});
const response = await client.search.createPastGrants();
console.log(response.expanded);200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"appPath": "appPath",
"appUserPath": "appUserPath",
"entitlementPath": "entitlementPath",
"history": {
"appEntitlementId": "appEntitlementId",
"appId": "appId",
"appUserId": "appUserId"
}
}
],
"nextPageToken": "nextPageToken"
}