Skip to content
  • Auto
  • Light
  • Dark
Get Started

Set

Set Bundle Automation
client.Catalogs.BundleAutomation.Set(ctx, requestCatalogID, body) (*CreatedAtTimeCreateTasksboolDeletedAtTimeEnabledboolEntitlementsBundleAutomationRuleEntitlementRequestCatalogIDstringStateBundleAutomationStateTenantIDstringUpdatedAtTimeBundleAutomation, error)
post/api/v1/catalogs/{request_catalog_id}/bundle_automation

Invokes the c1.api.requestcatalog.v1.RequestCatalogManagementService.SetBundleAutomation method.

Parameters
requestCatalogIDstring

The requestCatalogId field.

bodyCreateTasksfieldEnabledfieldEntitlementsfieldCatalogBundleAutomationSetParams
Hide ParametersShow Parameters
CreateTasksfield
optional
param.Field[bool]

The createTasks field.

Enabledfield
optional
param.Field[bool]

The enabled field.

Entitlementsfield
optional
param.Field[EntitlementRefsarrayBundleAutomationRuleEntitlement]

The BundleAutomationRuleEntitlement message.

Returns
CreatedAtTimeCreateTasksboolDeletedAtTimeEnabledboolEntitlementsBundleAutomationRuleEntitlementRequestCatalogIDstringStateBundleAutomationStateTenantIDstringUpdatedAtTimeBundleAutomation
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"),
  )
  bundleAutomation, err := client.Catalogs.BundleAutomation.Set(
    context.TODO(),
    "request_catalog_id",
    conductoronesdk.CatalogBundleAutomationSetParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", bundleAutomation.CreatedAt)
}
200 Example
{
  "createdAt": "2019-12-27T18:11:19.117Z",
  "createTasks": true,
  "deletedAt": "2019-12-27T18:11:19.117Z",
  "enabled": true,
  "entitlements": {
    "entitlementRefs": [
      {
        "id": "id",
        "appId": "appId"
      }
    ]
  },
  "requestCatalogId": "requestCatalogId",
  "state": {
    "errorMessage": "errorMessage",
    "lastRunAt": "2019-12-27T18:11:19.117Z",
    "status": "BUNDLE_AUTOMATION_RUN_STATUS_UNSPECIFIED"
  },
  "tenantId": "tenantId",
  "updatedAt": "2019-12-27T18:11:19.117Z"
}