Skip to content
  • Auto
  • Light
  • Dark
Get Started

Add Requestable Entries

Add App Entitlements
client.Catalogs.AddRequestableEntries(ctx, catalogID, body) (*CatalogAddRequestableEntriesResponse, error)
post/api/v1/catalogs/{catalog_id}/requestable_entries

Add requestable entitlements to a catalog.

Parameters
catalogIDstring

The Id of the request catalog to add app entitlements to. This is a URL value.

bodyAppEntitlementsfieldCreateRequestsfieldCatalogAddRequestableEntriesParams
Hide ParametersShow Parameters
AppEntitlementsfield
param.Field[[]IDstringAppIDstringAppEntitlementRef]

List of entitlements to add to the request catalog.

Hide ParametersShow Parameters
IDstring
optional

The id field.

AppIDstring
optional

The appId field.

CreateRequestsfield
optional
param.Field[bool]

Whether or not to create requests for newly added entitlements for users in the catalog. By default, this is false and no requests are created.

Returns
CatalogAddRequestableEntriesResponseinterface

Empty response with a status code indicating success.

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.Catalogs.AddRequestableEntries(
    context.TODO(),
    "catalog_id",
    conductoronesdk.CatalogAddRequestableEntriesParams{
      AppEntitlements: []conductoronesdk.AppEntitlementRefParam{conductoronesdk.AppEntitlementRefParam{

      }},
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
200 Example
{}