Create Past Grants
Search Past Grants
client.Search.NewPastGrants(ctx, body) (*ExpandedarrayListarrayNextPageTokenstringSearchNewPastGrantsResponse, error)
post/api/v1/search/past-grants
Invokes the c1.api.app.v1.AppEntitlementUserBindingService.SearchPastGrants method.
Parameters
bodyAppEntitlementRefsfieldAppIDsfieldAppUserRefsfieldExpandMaskfieldPageSizefieldPageTokenfieldSearchNewPastGrantsParams
Returns
SearchNewPastGrantsResponsestruct
The SearchPastGrantsResponse message contains a list of past grants and a nextPageToken if applicable.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Search.NewPastGrants(context.TODO(), conductoronesdk.SearchNewPastGrantsParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Expanded)
}
200 Example
{
"expanded": [
{
"@type": "@type"
}
],
"list": [
{
"appPath": "appPath",
"appUserPath": "appUserPath",
"entitlementPath": "entitlementPath",
"history": {
"appEntitlementId": "appEntitlementId",
"appId": "appId",
"appUserId": "appUserId"
}
}
],
"nextPageToken": "nextPageToken"
}