Skip to content
  • Auto
  • Light
  • Dark
Get Started

Search Feed

Search Grant Feed
client.Grants.SearchFeed(ctx, body) (*ExpandedarrayListarrayNextPageTokenstringGrantSearchFeedResponse, error)
post/api/v1/grants/feed

Invokes the c1.api.app.v1.AppEntitlementUserBindingService.SearchGrantFeed method.

Parameters
bodyAfterfieldAppEntitlementRefsfieldAppRefsfieldAppUserRefsfieldBeforefieldExpandMaskfieldPageSizefieldPageTokenfieldUserRefsfieldGrantSearchFeedParams
Hide ParametersShow Parameters
Afterfield
optional
param.Field[Time]
formatdate-time
AppEntitlementRefsfield
optional
param.Field[[]IDstringAppIDstringAppEntitlementRef]

The list of app entitlements to limit the search to.

Hide ParametersShow Parameters
IDstring
optional

The id field.

AppIDstring
optional

The appId field.

AppRefsfield
optional

The list of apps to limit the search to.

Hide ParametersShow Parameters
IDstring
optional

The id field.

AppUserRefsfield
optional
param.Field[[]IDstringAppIDstringAppUserRef]

The list of app users to limit the search to.

Hide ParametersShow Parameters
IDstring
optional

The ID of the app user.

AppIDstring
optional

The ID of the application.

Beforefield
optional
param.Field[Time]
formatdate-time
ExpandMaskfield
optional

The AppEntitlementUserBindingExpandHistoryMask message.

PageSizefield
optional
param.Field[int64]

The pageSize where 10 <= pageSize <= 100, default 25.

formatint32
PageTokenfield
optional
param.Field[string]

The page_token field for pagination.

UserRefsfield
optional
param.Field[[]IDstringUserRef]

The list of C1 users to limit the search to.

Hide ParametersShow Parameters
IDstring
optional

The id of the user.

Returns
GrantSearchFeedResponsestruct

The SearchGrantFeedResponse message contains a list of grant event results and a nextPageToken if applicable.

Hide ParametersShow Parameters
Expandedarray
optional

The expanded field.

Hide ParametersShow Parameters
Typestring
optional

The type of the serialized message.

Listarray
optional

The list of results containing up to X results, where X is the page size defined in the request.

Hide ParametersShow Parameters
AppPathstring
optional

The appPath field.

AppUserPathstring
optional

The appUserPath field.

EntitlementPathstring
optional

The entitlementPath field.

FeedAppEntitlementIDstringAppIDstringAppUserIDstringDateTimeEventTypestringTicketIDstringGrantSearchFeedResponseListFeed
optional

The AppEntitlementUserBindingFeed message.

Hide ParametersShow Parameters
AppEntitlementIDstring
optional

The ID of the app entitlement that the app user has access to

AppIDstring
optional

The ID of the app associated with the app entitlement

AppUserIDstring
optional

The ID of the app user that has access to the app entitlement

DateTime
optional
formatdate-time
EventTypestring
optional

The eventType field.

Hide ParametersShow Parameters
GrantSearchFeedResponseListFeedEventTypeGrantEventTypeUnspecifiedconst
GrantSearchFeedResponseListFeedEventTypeGrantEventTypeUnspecifiedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventTypeGrantEventTypeAddedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventTypeGrantEventTypeRemovedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventType
"GRANT_EVENT_TYPE_UNSPECIFIED"
GrantSearchFeedResponseListFeedEventTypeGrantEventTypeAddedconst
GrantSearchFeedResponseListFeedEventTypeGrantEventTypeUnspecifiedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventTypeGrantEventTypeAddedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventTypeGrantEventTypeRemovedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventType
"GRANT_EVENT_TYPE_ADDED"
GrantSearchFeedResponseListFeedEventTypeGrantEventTypeRemovedconst
GrantSearchFeedResponseListFeedEventTypeGrantEventTypeUnspecifiedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventTypeGrantEventTypeAddedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventTypeGrantEventTypeRemovedGrantSearchFeedResponseListFeedEventTypeGrantSearchFeedResponseListFeedEventType
"GRANT_EVENT_TYPE_REMOVED"
TicketIDstring
optional

The ticketId field.

TicketPathstring
optional

The ticketPath field.

NextPageTokenstring
optional

The nextPageToken is shown for the next page if the number of results is larger than the max page size. The server returns one page of results and the nextPageToken until all results are retrieved. To retrieve the next page, use the same request and append a pageToken field with the value of nextPageToken shown on the previous page.

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.Grants.SearchFeed(context.TODO(), conductoronesdk.GrantSearchFeedParams{

  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Expanded)
}
200 Example
{
  "expanded": [
    {
      "@type": "@type"
    }
  ],
  "list": [
    {
      "appPath": "appPath",
      "appUserPath": "appUserPath",
      "entitlementPath": "entitlementPath",
      "feed": {
        "appEntitlementId": "appEntitlementId",
        "appId": "appId",
        "appUserId": "appUserId",
        "date": "2019-12-27T18:11:19.117Z",
        "eventType": "GRANT_EVENT_TYPE_UNSPECIFIED",
        "ticketId": "ticketId"
      },
      "ticketPath": "ticketPath"
    }
  ],
  "nextPageToken": "nextPageToken"
}