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
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
{}