Update
Update Automation
client.Apps.Entitlements.Automation.Update(ctx, appEntitlementID, params) (*AppEntitlementAutomationC1APIAppV1AppEntitlementAutomationAppEntitlementAutomationUpdateResponse, error)
post/api/v1/apps/{app_id}/entitlements/{app_entitlement_id}/automation/update
Invokes the c1.api.app.v1.AppEntitlements.UpdateAutomation method.
Parameters
appEntitlementIDstring
The unique ID for the App Entitlement.
paramsAppIDfieldBasicfieldCelfieldDescriptionfieldDisplayNamefieldEntitlementsfieldNonefieldUpdateMaskfieldAppEntitlementAutomationUpdateParams
Returns
AppEntitlementAutomationUpdateResponsestruct
The AppEntitlementServiceUpdateAutomationResponse message.
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"),
)
automation, err := client.Apps.Entitlements.Automation.Update(
context.TODO(),
"app_entitlement_id",
conductoronesdk.AppEntitlementAutomationUpdateParams{
AppID: "app_id",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", automation.AppEntitlementAutomation)
}
200 Example
{
"AppEntitlementAutomation": {
"basic": {
"expression": "expression"
},
"cel": {
"expression": "expression"
},
"description": "description",
"displayName": "displayName",
"entitlements": {
"entitlementRefs": [
{
"id": "id",
"appId": "appId"
}
]
},
"lastRunStatus": {},
"none": {}
}
}