Skip to main content
POST
/
api
/
v1
/
automations
/
{id}
UpdateAutomation
package main

import(
	"context"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/operations"
	"log"
)

func main() {
    ctx := context.Background()

    s := conductoronesdkgo.New(
        conductoronesdkgo.WithSecurity(shared.Security{
            BearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
            Oauth: "<YOUR_OAUTH_HERE>",
        }),
    )

    res, err := s.Automation.UpdateAutomation(ctx, operations.C1APIAutomationsV1AutomationServiceUpdateAutomationRequest{
        ID: "<id>",
    })
    if err != nil {
        log.Fatal(err)
    }
    if res.UpdateAutomationResponse != nil {
        // handle response
    }
}
import { ConductoroneSDKTypescript } from "conductorone-sdk-typescript";

const conductoroneSDKTypescript = new ConductoroneSDKTypescript({
  security: {
    bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
    oauth: "<YOUR_OAUTH_HERE>",
  },
});

async function run() {
  const result = await conductoroneSDKTypescript.automation.updateAutomation({
    id: "<id>",
  });

  console.log(result);
}

run();
curl --request POST \
  --url https://{tenantDomain}.conductor.one/api/v1/automations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "automation": {
    "annotations": {},
    "appId": "<string>",
    "automationSteps": [
      {
        "accountLifecycleAction": {
          "accountInContext": {},
          "accountRef": {
            "accountIdCel": "<string>"
          },
          "actionName": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          }
        },
        "callFunction": {
          "args": {},
          "functionId": "<string>"
        },
        "connectorAction": {
          "actionName": "<string>",
          "argsTemplate": {},
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "resourceTypeId": "<string>"
        },
        "connectorCreateAccount": {
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>",
          "userIdCel": "<string>",
          "userProperties": {
            "displayNameCel": "<string>",
            "emailCel": "<string>",
            "profileAttributeCel": "<string>",
            "usernameCel": "<string>"
          }
        },
        "createAccessReview": {
          "accessReviewTemplateCel": "<string>",
          "accessReviewTemplateId": "<string>",
          "campaignName": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "createRevokeTasks": {
          "appEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "appEntitlementRefsCel": "<string>",
          "excludedAppEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedAppEntitlementRefsCel": "<string>",
          "revokeAll": true,
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "createRevokeTasksV2": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedResourceTypeIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionAccessOnly": {},
          "inclusionAll": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "resourceTypeIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "evaluateExpressions": {
          "expressions": [
            {
              "expressionCel": "<string>",
              "isSecret": true,
              "key": "<string>"
            }
          ]
        },
        "generatePassword": {
          "passwordPolicyId": "<string>",
          "policy": {
            "customCharacters": "<string>",
            "excludedCharacters": "<string>",
            "maxCharacterCount": 123,
            "minCharacterCount": 123,
            "noRestrictions": true,
            "requireLowercase": true,
            "requireNumbers": true,
            "requireSpecialCharacters": true,
            "requireUppercase": true
          }
        },
        "grantEntitlements": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "removeFromDelegation": {
          "replacementUserIdCel": "<string>",
          "replacementUserRef": {
            "id": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "runAutomation": {
          "automationTemplateIdCel": "<string>",
          "automationTemplateRef": {
            "id": "<string>"
          },
          "context": {
            "context": {}
          }
        },
        "sendEmail": {
          "body": "<string>",
          "email": "<string>",
          "emailCel": "<string>",
          "subject": "<string>",
          "title": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "sendSlackMessage": {
          "body": "<string>",
          "channelName": "<string>",
          "channelNameCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "setCredential": {
          "accountIdCel": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>"
        },
        "skipIfTrueCel": "<string>",
        "stepDisplayName": "<string>",
        "stepName": "<string>",
        "storeCredential": {
          "appIdCel": "<string>",
          "credentialCel": "<string>",
          "expiry": "<string>",
          "labelCel": "<string>",
          "maxViews": 123,
          "recipientCel": "<string>",
          "recipientEmailCel": "<string>",
          "ttl": "<string>"
        },
        "taskAction": {
          "close": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "reassign": {
            "assigneeUserIdCel": "<string>",
            "assigneeUserRef": {
              "id": "<string>"
            },
            "subjectUserIdCel": "<string>",
            "subjectUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true
          },
          "taskTypes": []
        },
        "unenrollFromAllAccessProfiles": {
          "catalogIds": [
            "<string>"
          ],
          "catalogIdsCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "updateUser": {
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          },
          "userStatusCel": "<string>"
        },
        "waitForDuration": {
          "duration": "<string>"
        },
        "webhook": {
          "payload": {},
          "webhookId": "<string>",
          "webhookIdCel": "<string>"
        }
      }
    ],
    "circuitBreaker": {
      "observedCount": 123,
      "threshold": 123,
      "trippedAt": "2023-11-07T05:31:56Z"
    },
    "circuitBreakerMax": 123,
    "context": {
      "context": {}
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "currentVersion": "<string>",
    "description": "<string>",
    "displayName": "<string>",
    "draftAutomationSteps": [
      {
        "accountLifecycleAction": {
          "accountInContext": {},
          "accountRef": {
            "accountIdCel": "<string>"
          },
          "actionName": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          }
        },
        "callFunction": {
          "args": {},
          "functionId": "<string>"
        },
        "connectorAction": {
          "actionName": "<string>",
          "argsTemplate": {},
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "resourceTypeId": "<string>"
        },
        "connectorCreateAccount": {
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>",
          "userIdCel": "<string>",
          "userProperties": {
            "displayNameCel": "<string>",
            "emailCel": "<string>",
            "profileAttributeCel": "<string>",
            "usernameCel": "<string>"
          }
        },
        "createAccessReview": {
          "accessReviewTemplateCel": "<string>",
          "accessReviewTemplateId": "<string>",
          "campaignName": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "createRevokeTasks": {
          "appEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "appEntitlementRefsCel": "<string>",
          "excludedAppEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedAppEntitlementRefsCel": "<string>",
          "revokeAll": true,
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "createRevokeTasksV2": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedResourceTypeIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionAccessOnly": {},
          "inclusionAll": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "resourceTypeIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "evaluateExpressions": {
          "expressions": [
            {
              "expressionCel": "<string>",
              "isSecret": true,
              "key": "<string>"
            }
          ]
        },
        "generatePassword": {
          "passwordPolicyId": "<string>",
          "policy": {
            "customCharacters": "<string>",
            "excludedCharacters": "<string>",
            "maxCharacterCount": 123,
            "minCharacterCount": 123,
            "noRestrictions": true,
            "requireLowercase": true,
            "requireNumbers": true,
            "requireSpecialCharacters": true,
            "requireUppercase": true
          }
        },
        "grantEntitlements": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "removeFromDelegation": {
          "replacementUserIdCel": "<string>",
          "replacementUserRef": {
            "id": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "runAutomation": {
          "automationTemplateIdCel": "<string>",
          "automationTemplateRef": {
            "id": "<string>"
          },
          "context": {
            "context": {}
          }
        },
        "sendEmail": {
          "body": "<string>",
          "email": "<string>",
          "emailCel": "<string>",
          "subject": "<string>",
          "title": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "sendSlackMessage": {
          "body": "<string>",
          "channelName": "<string>",
          "channelNameCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "setCredential": {
          "accountIdCel": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>"
        },
        "skipIfTrueCel": "<string>",
        "stepDisplayName": "<string>",
        "stepName": "<string>",
        "storeCredential": {
          "appIdCel": "<string>",
          "credentialCel": "<string>",
          "expiry": "<string>",
          "labelCel": "<string>",
          "maxViews": 123,
          "recipientCel": "<string>",
          "recipientEmailCel": "<string>",
          "ttl": "<string>"
        },
        "taskAction": {
          "close": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "reassign": {
            "assigneeUserIdCel": "<string>",
            "assigneeUserRef": {
              "id": "<string>"
            },
            "subjectUserIdCel": "<string>",
            "subjectUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true
          },
          "taskTypes": []
        },
        "unenrollFromAllAccessProfiles": {
          "catalogIds": [
            "<string>"
          ],
          "catalogIdsCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "updateUser": {
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          },
          "userStatusCel": "<string>"
        },
        "waitForDuration": {
          "duration": "<string>"
        },
        "webhook": {
          "payload": {},
          "webhookId": "<string>",
          "webhookIdCel": "<string>"
        }
      }
    ],
    "draftTriggers": [
      {
        "accessConflict": {
          "allConflictMonitors": true,
          "conflictMonitorRefs": {
            "conflictMonitorRefs": [
              {
                "id": "<string>"
              }
            ]
          }
        },
        "appUserCreated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "appUserUpdated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "grantDeleted": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "grantFound": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "schedule": {
          "advanced": true,
          "condition": "<string>",
          "cronSpec": "<string>",
          "skipIfTrueCel": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleAppUser": {
          "appId": "<string>",
          "condition": "<string>",
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleNoUser": {
          "advanced": true,
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "usageBasedRevocation": {
          "appId": "<string>",
          "enabledAt": "2023-11-07T05:31:56Z",
          "excludedGroupRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedUserRefs": [
            {
              "id": "<string>"
            }
          ],
          "includeUsersWithNoActivity": true,
          "runDelayed": {
            "coldStartDelayDays": 123
          },
          "runImmediately": {},
          "targetedAppUserTypes": [],
          "targetedEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "unusedForDays": 123
        },
        "userCreated": {
          "condition": "<string>"
        },
        "userProfileChange": {
          "condition": "<string>"
        },
        "webhook": {
          "capabilityUrl": {},
          "hmac": {},
          "jwt": {
            "jwksUrl": "<string>"
          },
          "listenerId": "<string>"
        }
      }
    ],
    "enabled": true,
    "isDraft": true,
    "lastExecutedAt": "2023-11-07T05:31:56Z",
    "triggers": [
      {
        "accessConflict": {
          "allConflictMonitors": true,
          "conflictMonitorRefs": {
            "conflictMonitorRefs": [
              {
                "id": "<string>"
              }
            ]
          }
        },
        "appUserCreated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "appUserUpdated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "grantDeleted": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "grantFound": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "schedule": {
          "advanced": true,
          "condition": "<string>",
          "cronSpec": "<string>",
          "skipIfTrueCel": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleAppUser": {
          "appId": "<string>",
          "condition": "<string>",
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleNoUser": {
          "advanced": true,
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "usageBasedRevocation": {
          "appId": "<string>",
          "enabledAt": "2023-11-07T05:31:56Z",
          "excludedGroupRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedUserRefs": [
            {
              "id": "<string>"
            }
          ],
          "includeUsersWithNoActivity": true,
          "runDelayed": {
            "coldStartDelayDays": 123
          },
          "runImmediately": {},
          "targetedAppUserTypes": [],
          "targetedEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "unusedForDays": 123
        },
        "userCreated": {
          "condition": "<string>"
        },
        "userProfileChange": {
          "condition": "<string>"
        },
        "webhook": {
          "capabilityUrl": {},
          "hmac": {},
          "jwt": {
            "jwksUrl": "<string>"
          },
          "listenerId": "<string>"
        }
      }
    ]
  },
  "updateMask": "<string>"
}
'
import requests

url = "https://{tenantDomain}.conductor.one/api/v1/automations/{id}"

payload = {
    "automation": {
        "annotations": {},
        "appId": "<string>",
        "automationSteps": [
            {
                "accountLifecycleAction": {
                    "accountInContext": {},
                    "accountRef": { "accountIdCel": "<string>" },
                    "actionName": "<string>",
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    }
                },
                "callFunction": {
                    "args": {},
                    "functionId": "<string>"
                },
                "connectorAction": {
                    "actionName": "<string>",
                    "argsTemplate": {},
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    },
                    "resourceTypeId": "<string>"
                },
                "connectorCreateAccount": {
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    },
                    "passwordCel": "<string>",
                    "userIdCel": "<string>",
                    "userProperties": {
                        "displayNameCel": "<string>",
                        "emailCel": "<string>",
                        "profileAttributeCel": "<string>",
                        "usernameCel": "<string>"
                    }
                },
                "createAccessReview": {
                    "accessReviewTemplateCel": "<string>",
                    "accessReviewTemplateId": "<string>",
                    "campaignName": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "createRevokeTasks": {
                    "appEntitlementRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "appEntitlementRefsCel": "<string>",
                    "excludedAppEntitlementRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "excludedAppEntitlementRefsCel": "<string>",
                    "revokeAll": True,
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "createRevokeTasksV2": {
                    "exclusionCriteria": {
                        "excludedAppIds": ["<string>"],
                        "excludedComplianceFrameworkIds": ["<string>"],
                        "excludedResourceTypeIds": ["<string>"],
                        "excludedRiskLevelIds": ["<string>"]
                    },
                    "exclusionList": { "excludedAppEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "exclusionListCel": { "excludedAppEntitlementRefsCel": "<string>" },
                    "exclusionNone": {},
                    "inclusionAccessOnly": {},
                    "inclusionAll": {},
                    "inclusionCriteria": {
                        "appIds": ["<string>"],
                        "complianceFrameworkIds": ["<string>"],
                        "resourceTypeIds": ["<string>"],
                        "riskLevelIds": ["<string>"]
                    },
                    "inclusionList": { "appEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "inclusionListCel": { "appEntitlementRefsCel": "<string>" },
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "evaluateExpressions": { "expressions": [
                        {
                            "expressionCel": "<string>",
                            "isSecret": True,
                            "key": "<string>"
                        }
                    ] },
                "generatePassword": {
                    "passwordPolicyId": "<string>",
                    "policy": {
                        "customCharacters": "<string>",
                        "excludedCharacters": "<string>",
                        "maxCharacterCount": 123,
                        "minCharacterCount": 123,
                        "noRestrictions": True,
                        "requireLowercase": True,
                        "requireNumbers": True,
                        "requireSpecialCharacters": True,
                        "requireUppercase": True
                    }
                },
                "grantEntitlements": {
                    "exclusionCriteria": {
                        "excludedAppIds": ["<string>"],
                        "excludedComplianceFrameworkIds": ["<string>"],
                        "excludedRiskLevelIds": ["<string>"]
                    },
                    "exclusionList": { "excludedAppEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "exclusionListCel": { "excludedAppEntitlementRefsCel": "<string>" },
                    "exclusionNone": {},
                    "inclusionCriteria": {
                        "appIds": ["<string>"],
                        "complianceFrameworkIds": ["<string>"],
                        "riskLevelIds": ["<string>"]
                    },
                    "inclusionList": { "appEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "inclusionListCel": { "appEntitlementRefsCel": "<string>" },
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "removeFromDelegation": {
                    "replacementUserIdCel": "<string>",
                    "replacementUserRef": { "id": "<string>" },
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "runAutomation": {
                    "automationTemplateIdCel": "<string>",
                    "automationTemplateRef": { "id": "<string>" },
                    "context": { "context": {} }
                },
                "sendEmail": {
                    "body": "<string>",
                    "email": "<string>",
                    "emailCel": "<string>",
                    "subject": "<string>",
                    "title": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "sendSlackMessage": {
                    "body": "<string>",
                    "channelName": "<string>",
                    "channelNameCel": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "setCredential": {
                    "accountIdCel": "<string>",
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    },
                    "passwordCel": "<string>"
                },
                "skipIfTrueCel": "<string>",
                "stepDisplayName": "<string>",
                "stepName": "<string>",
                "storeCredential": {
                    "appIdCel": "<string>",
                    "credentialCel": "<string>",
                    "expiry": "<string>",
                    "labelCel": "<string>",
                    "maxViews": 123,
                    "recipientCel": "<string>",
                    "recipientEmailCel": "<string>",
                    "ttl": "<string>"
                },
                "taskAction": {
                    "close": {
                        "useSubjectUser": True,
                        "userIdCel": "<string>",
                        "userRef": { "id": "<string>" }
                    },
                    "reassign": {
                        "assigneeUserIdCel": "<string>",
                        "assigneeUserRef": { "id": "<string>" },
                        "subjectUserIdCel": "<string>",
                        "subjectUserRef": { "id": "<string>" },
                        "useSubjectUser": True
                    },
                    "taskTypes": []
                },
                "unenrollFromAllAccessProfiles": {
                    "catalogIds": ["<string>"],
                    "catalogIdsCel": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "updateUser": {
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" },
                    "userStatusCel": "<string>"
                },
                "waitForDuration": { "duration": "<string>" },
                "webhook": {
                    "payload": {},
                    "webhookId": "<string>",
                    "webhookIdCel": "<string>"
                }
            }
        ],
        "circuitBreaker": {
            "observedCount": 123,
            "threshold": 123,
            "trippedAt": "2023-11-07T05:31:56Z"
        },
        "circuitBreakerMax": 123,
        "context": { "context": {} },
        "createdAt": "2023-11-07T05:31:56Z",
        "currentVersion": "<string>",
        "description": "<string>",
        "displayName": "<string>",
        "draftAutomationSteps": [
            {
                "accountLifecycleAction": {
                    "accountInContext": {},
                    "accountRef": { "accountIdCel": "<string>" },
                    "actionName": "<string>",
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    }
                },
                "callFunction": {
                    "args": {},
                    "functionId": "<string>"
                },
                "connectorAction": {
                    "actionName": "<string>",
                    "argsTemplate": {},
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    },
                    "resourceTypeId": "<string>"
                },
                "connectorCreateAccount": {
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    },
                    "passwordCel": "<string>",
                    "userIdCel": "<string>",
                    "userProperties": {
                        "displayNameCel": "<string>",
                        "emailCel": "<string>",
                        "profileAttributeCel": "<string>",
                        "usernameCel": "<string>"
                    }
                },
                "createAccessReview": {
                    "accessReviewTemplateCel": "<string>",
                    "accessReviewTemplateId": "<string>",
                    "campaignName": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "createRevokeTasks": {
                    "appEntitlementRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "appEntitlementRefsCel": "<string>",
                    "excludedAppEntitlementRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "excludedAppEntitlementRefsCel": "<string>",
                    "revokeAll": True,
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "createRevokeTasksV2": {
                    "exclusionCriteria": {
                        "excludedAppIds": ["<string>"],
                        "excludedComplianceFrameworkIds": ["<string>"],
                        "excludedResourceTypeIds": ["<string>"],
                        "excludedRiskLevelIds": ["<string>"]
                    },
                    "exclusionList": { "excludedAppEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "exclusionListCel": { "excludedAppEntitlementRefsCel": "<string>" },
                    "exclusionNone": {},
                    "inclusionAccessOnly": {},
                    "inclusionAll": {},
                    "inclusionCriteria": {
                        "appIds": ["<string>"],
                        "complianceFrameworkIds": ["<string>"],
                        "resourceTypeIds": ["<string>"],
                        "riskLevelIds": ["<string>"]
                    },
                    "inclusionList": { "appEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "inclusionListCel": { "appEntitlementRefsCel": "<string>" },
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "evaluateExpressions": { "expressions": [
                        {
                            "expressionCel": "<string>",
                            "isSecret": True,
                            "key": "<string>"
                        }
                    ] },
                "generatePassword": {
                    "passwordPolicyId": "<string>",
                    "policy": {
                        "customCharacters": "<string>",
                        "excludedCharacters": "<string>",
                        "maxCharacterCount": 123,
                        "minCharacterCount": 123,
                        "noRestrictions": True,
                        "requireLowercase": True,
                        "requireNumbers": True,
                        "requireSpecialCharacters": True,
                        "requireUppercase": True
                    }
                },
                "grantEntitlements": {
                    "exclusionCriteria": {
                        "excludedAppIds": ["<string>"],
                        "excludedComplianceFrameworkIds": ["<string>"],
                        "excludedRiskLevelIds": ["<string>"]
                    },
                    "exclusionList": { "excludedAppEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "exclusionListCel": { "excludedAppEntitlementRefsCel": "<string>" },
                    "exclusionNone": {},
                    "inclusionCriteria": {
                        "appIds": ["<string>"],
                        "complianceFrameworkIds": ["<string>"],
                        "riskLevelIds": ["<string>"]
                    },
                    "inclusionList": { "appEntitlementRefs": [
                            {
                                "appId": "<string>",
                                "id": "<string>"
                            }
                        ] },
                    "inclusionListCel": { "appEntitlementRefsCel": "<string>" },
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "removeFromDelegation": {
                    "replacementUserIdCel": "<string>",
                    "replacementUserRef": { "id": "<string>" },
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" }
                },
                "runAutomation": {
                    "automationTemplateIdCel": "<string>",
                    "automationTemplateRef": { "id": "<string>" },
                    "context": { "context": {} }
                },
                "sendEmail": {
                    "body": "<string>",
                    "email": "<string>",
                    "emailCel": "<string>",
                    "subject": "<string>",
                    "title": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "sendSlackMessage": {
                    "body": "<string>",
                    "channelName": "<string>",
                    "channelNameCel": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "setCredential": {
                    "accountIdCel": "<string>",
                    "connectorRef": {
                        "appId": "<string>",
                        "id": "<string>"
                    },
                    "passwordCel": "<string>"
                },
                "skipIfTrueCel": "<string>",
                "stepDisplayName": "<string>",
                "stepName": "<string>",
                "storeCredential": {
                    "appIdCel": "<string>",
                    "credentialCel": "<string>",
                    "expiry": "<string>",
                    "labelCel": "<string>",
                    "maxViews": 123,
                    "recipientCel": "<string>",
                    "recipientEmailCel": "<string>",
                    "ttl": "<string>"
                },
                "taskAction": {
                    "close": {
                        "useSubjectUser": True,
                        "userIdCel": "<string>",
                        "userRef": { "id": "<string>" }
                    },
                    "reassign": {
                        "assigneeUserIdCel": "<string>",
                        "assigneeUserRef": { "id": "<string>" },
                        "subjectUserIdCel": "<string>",
                        "subjectUserRef": { "id": "<string>" },
                        "useSubjectUser": True
                    },
                    "taskTypes": []
                },
                "unenrollFromAllAccessProfiles": {
                    "catalogIds": ["<string>"],
                    "catalogIdsCel": "<string>",
                    "useSubjectUser": True,
                    "userIdsCel": "<string>",
                    "userRefs": [{ "id": "<string>" }]
                },
                "updateUser": {
                    "useSubjectUser": True,
                    "userIdCel": "<string>",
                    "userRef": { "id": "<string>" },
                    "userStatusCel": "<string>"
                },
                "waitForDuration": { "duration": "<string>" },
                "webhook": {
                    "payload": {},
                    "webhookId": "<string>",
                    "webhookIdCel": "<string>"
                }
            }
        ],
        "draftTriggers": [
            {
                "accessConflict": {
                    "allConflictMonitors": True,
                    "conflictMonitorRefs": { "conflictMonitorRefs": [{ "id": "<string>" }] }
                },
                "appUserCreated": {
                    "appId": "<string>",
                    "appIdCel": "<string>",
                    "condition": "<string>"
                },
                "appUserUpdated": {
                    "appId": "<string>",
                    "appIdCel": "<string>",
                    "condition": "<string>"
                },
                "grantDeleted": { "grantTriggerFilter": {
                        "accountFilter": {},
                        "grantFilter": {},
                        "inclusionAll": {},
                        "inclusionCriteria": {
                            "appIds": ["<string>"],
                            "complianceFrameworkIds": ["<string>"],
                            "resourceTypeIds": ["<string>"],
                            "riskLevelIds": ["<string>"]
                        },
                        "inclusionList": { "appEntitlementRefs": [
                                {
                                    "appId": "<string>",
                                    "id": "<string>"
                                }
                            ] },
                        "inclusionListCel": { "appEntitlementRefsCel": "<string>" }
                    } },
                "grantFound": { "grantTriggerFilter": {
                        "accountFilter": {},
                        "grantFilter": {},
                        "inclusionAll": {},
                        "inclusionCriteria": {
                            "appIds": ["<string>"],
                            "complianceFrameworkIds": ["<string>"],
                            "resourceTypeIds": ["<string>"],
                            "riskLevelIds": ["<string>"]
                        },
                        "inclusionList": { "appEntitlementRefs": [
                                {
                                    "appId": "<string>",
                                    "id": "<string>"
                                }
                            ] },
                        "inclusionListCel": { "appEntitlementRefsCel": "<string>" }
                    } },
                "schedule": {
                    "advanced": True,
                    "condition": "<string>",
                    "cronSpec": "<string>",
                    "skipIfTrueCel": "<string>",
                    "start": "2023-11-07T05:31:56Z",
                    "timezone": "<string>"
                },
                "scheduleAppUser": {
                    "appId": "<string>",
                    "condition": "<string>",
                    "cronSpec": "<string>",
                    "start": "2023-11-07T05:31:56Z",
                    "timezone": "<string>"
                },
                "scheduleNoUser": {
                    "advanced": True,
                    "cronSpec": "<string>",
                    "start": "2023-11-07T05:31:56Z",
                    "timezone": "<string>"
                },
                "usageBasedRevocation": {
                    "appId": "<string>",
                    "enabledAt": "2023-11-07T05:31:56Z",
                    "excludedGroupRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "excludedUserRefs": [{ "id": "<string>" }],
                    "includeUsersWithNoActivity": True,
                    "runDelayed": { "coldStartDelayDays": 123 },
                    "runImmediately": {},
                    "targetedAppUserTypes": [],
                    "targetedEntitlementRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "unusedForDays": 123
                },
                "userCreated": { "condition": "<string>" },
                "userProfileChange": { "condition": "<string>" },
                "webhook": {
                    "capabilityUrl": {},
                    "hmac": {},
                    "jwt": { "jwksUrl": "<string>" },
                    "listenerId": "<string>"
                }
            }
        ],
        "enabled": True,
        "isDraft": True,
        "lastExecutedAt": "2023-11-07T05:31:56Z",
        "triggers": [
            {
                "accessConflict": {
                    "allConflictMonitors": True,
                    "conflictMonitorRefs": { "conflictMonitorRefs": [{ "id": "<string>" }] }
                },
                "appUserCreated": {
                    "appId": "<string>",
                    "appIdCel": "<string>",
                    "condition": "<string>"
                },
                "appUserUpdated": {
                    "appId": "<string>",
                    "appIdCel": "<string>",
                    "condition": "<string>"
                },
                "grantDeleted": { "grantTriggerFilter": {
                        "accountFilter": {},
                        "grantFilter": {},
                        "inclusionAll": {},
                        "inclusionCriteria": {
                            "appIds": ["<string>"],
                            "complianceFrameworkIds": ["<string>"],
                            "resourceTypeIds": ["<string>"],
                            "riskLevelIds": ["<string>"]
                        },
                        "inclusionList": { "appEntitlementRefs": [
                                {
                                    "appId": "<string>",
                                    "id": "<string>"
                                }
                            ] },
                        "inclusionListCel": { "appEntitlementRefsCel": "<string>" }
                    } },
                "grantFound": { "grantTriggerFilter": {
                        "accountFilter": {},
                        "grantFilter": {},
                        "inclusionAll": {},
                        "inclusionCriteria": {
                            "appIds": ["<string>"],
                            "complianceFrameworkIds": ["<string>"],
                            "resourceTypeIds": ["<string>"],
                            "riskLevelIds": ["<string>"]
                        },
                        "inclusionList": { "appEntitlementRefs": [
                                {
                                    "appId": "<string>",
                                    "id": "<string>"
                                }
                            ] },
                        "inclusionListCel": { "appEntitlementRefsCel": "<string>" }
                    } },
                "schedule": {
                    "advanced": True,
                    "condition": "<string>",
                    "cronSpec": "<string>",
                    "skipIfTrueCel": "<string>",
                    "start": "2023-11-07T05:31:56Z",
                    "timezone": "<string>"
                },
                "scheduleAppUser": {
                    "appId": "<string>",
                    "condition": "<string>",
                    "cronSpec": "<string>",
                    "start": "2023-11-07T05:31:56Z",
                    "timezone": "<string>"
                },
                "scheduleNoUser": {
                    "advanced": True,
                    "cronSpec": "<string>",
                    "start": "2023-11-07T05:31:56Z",
                    "timezone": "<string>"
                },
                "usageBasedRevocation": {
                    "appId": "<string>",
                    "enabledAt": "2023-11-07T05:31:56Z",
                    "excludedGroupRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "excludedUserRefs": [{ "id": "<string>" }],
                    "includeUsersWithNoActivity": True,
                    "runDelayed": { "coldStartDelayDays": 123 },
                    "runImmediately": {},
                    "targetedAppUserTypes": [],
                    "targetedEntitlementRefs": [
                        {
                            "appId": "<string>",
                            "id": "<string>"
                        }
                    ],
                    "unusedForDays": 123
                },
                "userCreated": { "condition": "<string>" },
                "userProfileChange": { "condition": "<string>" },
                "webhook": {
                    "capabilityUrl": {},
                    "hmac": {},
                    "jwt": { "jwksUrl": "<string>" },
                    "listenerId": "<string>"
                }
            }
        ]
    },
    "updateMask": "<string>"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    automation: {
      annotations: {},
      appId: '<string>',
      automationSteps: [
        {
          accountLifecycleAction: {
            accountInContext: {},
            accountRef: {accountIdCel: '<string>'},
            actionName: '<string>',
            connectorRef: {appId: '<string>', id: '<string>'}
          },
          callFunction: {args: {}, functionId: '<string>'},
          connectorAction: {
            actionName: '<string>',
            argsTemplate: {},
            connectorRef: {appId: '<string>', id: '<string>'},
            resourceTypeId: '<string>'
          },
          connectorCreateAccount: {
            connectorRef: {appId: '<string>', id: '<string>'},
            passwordCel: '<string>',
            userIdCel: '<string>',
            userProperties: {
              displayNameCel: '<string>',
              emailCel: '<string>',
              profileAttributeCel: '<string>',
              usernameCel: '<string>'
            }
          },
          createAccessReview: {
            accessReviewTemplateCel: '<string>',
            accessReviewTemplateId: '<string>',
            campaignName: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          createRevokeTasks: {
            appEntitlementRefs: [{appId: '<string>', id: '<string>'}],
            appEntitlementRefsCel: '<string>',
            excludedAppEntitlementRefs: [{appId: '<string>', id: '<string>'}],
            excludedAppEntitlementRefsCel: '<string>',
            revokeAll: true,
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          createRevokeTasksV2: {
            exclusionCriteria: {
              excludedAppIds: ['<string>'],
              excludedComplianceFrameworkIds: ['<string>'],
              excludedResourceTypeIds: ['<string>'],
              excludedRiskLevelIds: ['<string>']
            },
            exclusionList: {excludedAppEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            exclusionListCel: {excludedAppEntitlementRefsCel: '<string>'},
            exclusionNone: {},
            inclusionAccessOnly: {},
            inclusionAll: {},
            inclusionCriteria: {
              appIds: ['<string>'],
              complianceFrameworkIds: ['<string>'],
              resourceTypeIds: ['<string>'],
              riskLevelIds: ['<string>']
            },
            inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            inclusionListCel: {appEntitlementRefsCel: '<string>'},
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          evaluateExpressions: {expressions: [{expressionCel: '<string>', isSecret: true, key: '<string>'}]},
          generatePassword: {
            passwordPolicyId: '<string>',
            policy: {
              customCharacters: '<string>',
              excludedCharacters: '<string>',
              maxCharacterCount: 123,
              minCharacterCount: 123,
              noRestrictions: true,
              requireLowercase: true,
              requireNumbers: true,
              requireSpecialCharacters: true,
              requireUppercase: true
            }
          },
          grantEntitlements: {
            exclusionCriteria: {
              excludedAppIds: ['<string>'],
              excludedComplianceFrameworkIds: ['<string>'],
              excludedRiskLevelIds: ['<string>']
            },
            exclusionList: {excludedAppEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            exclusionListCel: {excludedAppEntitlementRefsCel: '<string>'},
            exclusionNone: {},
            inclusionCriteria: {
              appIds: ['<string>'],
              complianceFrameworkIds: ['<string>'],
              riskLevelIds: ['<string>']
            },
            inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            inclusionListCel: {appEntitlementRefsCel: '<string>'},
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          removeFromDelegation: {
            replacementUserIdCel: '<string>',
            replacementUserRef: {id: '<string>'},
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          runAutomation: {
            automationTemplateIdCel: '<string>',
            automationTemplateRef: {id: '<string>'},
            context: {context: {}}
          },
          sendEmail: {
            body: JSON.stringify('<string>'),
            email: '<string>',
            emailCel: '<string>',
            subject: '<string>',
            title: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          sendSlackMessage: {
            body: JSON.stringify('<string>'),
            channelName: '<string>',
            channelNameCel: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          setCredential: {
            accountIdCel: '<string>',
            connectorRef: {appId: '<string>', id: '<string>'},
            passwordCel: '<string>'
          },
          skipIfTrueCel: '<string>',
          stepDisplayName: '<string>',
          stepName: '<string>',
          storeCredential: {
            appIdCel: '<string>',
            credentialCel: '<string>',
            expiry: '<string>',
            labelCel: '<string>',
            maxViews: 123,
            recipientCel: '<string>',
            recipientEmailCel: '<string>',
            ttl: '<string>'
          },
          taskAction: {
            close: {useSubjectUser: true, userIdCel: '<string>', userRef: {id: '<string>'}},
            reassign: {
              assigneeUserIdCel: '<string>',
              assigneeUserRef: {id: '<string>'},
              subjectUserIdCel: '<string>',
              subjectUserRef: {id: '<string>'},
              useSubjectUser: true
            },
            taskTypes: []
          },
          unenrollFromAllAccessProfiles: {
            catalogIds: ['<string>'],
            catalogIdsCel: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          updateUser: {
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'},
            userStatusCel: '<string>'
          },
          waitForDuration: {duration: '<string>'},
          webhook: {payload: {}, webhookId: '<string>', webhookIdCel: '<string>'}
        }
      ],
      circuitBreaker: {observedCount: 123, threshold: 123, trippedAt: '2023-11-07T05:31:56Z'},
      circuitBreakerMax: 123,
      context: {context: {}},
      createdAt: '2023-11-07T05:31:56Z',
      currentVersion: '<string>',
      description: '<string>',
      displayName: '<string>',
      draftAutomationSteps: [
        {
          accountLifecycleAction: {
            accountInContext: {},
            accountRef: {accountIdCel: '<string>'},
            actionName: '<string>',
            connectorRef: {appId: '<string>', id: '<string>'}
          },
          callFunction: {args: {}, functionId: '<string>'},
          connectorAction: {
            actionName: '<string>',
            argsTemplate: {},
            connectorRef: {appId: '<string>', id: '<string>'},
            resourceTypeId: '<string>'
          },
          connectorCreateAccount: {
            connectorRef: {appId: '<string>', id: '<string>'},
            passwordCel: '<string>',
            userIdCel: '<string>',
            userProperties: {
              displayNameCel: '<string>',
              emailCel: '<string>',
              profileAttributeCel: '<string>',
              usernameCel: '<string>'
            }
          },
          createAccessReview: {
            accessReviewTemplateCel: '<string>',
            accessReviewTemplateId: '<string>',
            campaignName: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          createRevokeTasks: {
            appEntitlementRefs: [{appId: '<string>', id: '<string>'}],
            appEntitlementRefsCel: '<string>',
            excludedAppEntitlementRefs: [{appId: '<string>', id: '<string>'}],
            excludedAppEntitlementRefsCel: '<string>',
            revokeAll: true,
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          createRevokeTasksV2: {
            exclusionCriteria: {
              excludedAppIds: ['<string>'],
              excludedComplianceFrameworkIds: ['<string>'],
              excludedResourceTypeIds: ['<string>'],
              excludedRiskLevelIds: ['<string>']
            },
            exclusionList: {excludedAppEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            exclusionListCel: {excludedAppEntitlementRefsCel: '<string>'},
            exclusionNone: {},
            inclusionAccessOnly: {},
            inclusionAll: {},
            inclusionCriteria: {
              appIds: ['<string>'],
              complianceFrameworkIds: ['<string>'],
              resourceTypeIds: ['<string>'],
              riskLevelIds: ['<string>']
            },
            inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            inclusionListCel: {appEntitlementRefsCel: '<string>'},
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          evaluateExpressions: {expressions: [{expressionCel: '<string>', isSecret: true, key: '<string>'}]},
          generatePassword: {
            passwordPolicyId: '<string>',
            policy: {
              customCharacters: '<string>',
              excludedCharacters: '<string>',
              maxCharacterCount: 123,
              minCharacterCount: 123,
              noRestrictions: true,
              requireLowercase: true,
              requireNumbers: true,
              requireSpecialCharacters: true,
              requireUppercase: true
            }
          },
          grantEntitlements: {
            exclusionCriteria: {
              excludedAppIds: ['<string>'],
              excludedComplianceFrameworkIds: ['<string>'],
              excludedRiskLevelIds: ['<string>']
            },
            exclusionList: {excludedAppEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            exclusionListCel: {excludedAppEntitlementRefsCel: '<string>'},
            exclusionNone: {},
            inclusionCriteria: {
              appIds: ['<string>'],
              complianceFrameworkIds: ['<string>'],
              riskLevelIds: ['<string>']
            },
            inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
            inclusionListCel: {appEntitlementRefsCel: '<string>'},
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          removeFromDelegation: {
            replacementUserIdCel: '<string>',
            replacementUserRef: {id: '<string>'},
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'}
          },
          runAutomation: {
            automationTemplateIdCel: '<string>',
            automationTemplateRef: {id: '<string>'},
            context: {context: {}}
          },
          sendEmail: {
            body: JSON.stringify('<string>'),
            email: '<string>',
            emailCel: '<string>',
            subject: '<string>',
            title: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          sendSlackMessage: {
            body: JSON.stringify('<string>'),
            channelName: '<string>',
            channelNameCel: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          setCredential: {
            accountIdCel: '<string>',
            connectorRef: {appId: '<string>', id: '<string>'},
            passwordCel: '<string>'
          },
          skipIfTrueCel: '<string>',
          stepDisplayName: '<string>',
          stepName: '<string>',
          storeCredential: {
            appIdCel: '<string>',
            credentialCel: '<string>',
            expiry: '<string>',
            labelCel: '<string>',
            maxViews: 123,
            recipientCel: '<string>',
            recipientEmailCel: '<string>',
            ttl: '<string>'
          },
          taskAction: {
            close: {useSubjectUser: true, userIdCel: '<string>', userRef: {id: '<string>'}},
            reassign: {
              assigneeUserIdCel: '<string>',
              assigneeUserRef: {id: '<string>'},
              subjectUserIdCel: '<string>',
              subjectUserRef: {id: '<string>'},
              useSubjectUser: true
            },
            taskTypes: []
          },
          unenrollFromAllAccessProfiles: {
            catalogIds: ['<string>'],
            catalogIdsCel: '<string>',
            useSubjectUser: true,
            userIdsCel: '<string>',
            userRefs: [{id: '<string>'}]
          },
          updateUser: {
            useSubjectUser: true,
            userIdCel: '<string>',
            userRef: {id: '<string>'},
            userStatusCel: '<string>'
          },
          waitForDuration: {duration: '<string>'},
          webhook: {payload: {}, webhookId: '<string>', webhookIdCel: '<string>'}
        }
      ],
      draftTriggers: [
        {
          accessConflict: {
            allConflictMonitors: true,
            conflictMonitorRefs: {conflictMonitorRefs: [{id: '<string>'}]}
          },
          appUserCreated: {appId: '<string>', appIdCel: '<string>', condition: '<string>'},
          appUserUpdated: {appId: '<string>', appIdCel: '<string>', condition: '<string>'},
          grantDeleted: {
            grantTriggerFilter: {
              accountFilter: {},
              grantFilter: {},
              inclusionAll: {},
              inclusionCriteria: {
                appIds: ['<string>'],
                complianceFrameworkIds: ['<string>'],
                resourceTypeIds: ['<string>'],
                riskLevelIds: ['<string>']
              },
              inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
              inclusionListCel: {appEntitlementRefsCel: '<string>'}
            }
          },
          grantFound: {
            grantTriggerFilter: {
              accountFilter: {},
              grantFilter: {},
              inclusionAll: {},
              inclusionCriteria: {
                appIds: ['<string>'],
                complianceFrameworkIds: ['<string>'],
                resourceTypeIds: ['<string>'],
                riskLevelIds: ['<string>']
              },
              inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
              inclusionListCel: {appEntitlementRefsCel: '<string>'}
            }
          },
          schedule: {
            advanced: true,
            condition: '<string>',
            cronSpec: '<string>',
            skipIfTrueCel: '<string>',
            start: '2023-11-07T05:31:56Z',
            timezone: '<string>'
          },
          scheduleAppUser: {
            appId: '<string>',
            condition: '<string>',
            cronSpec: '<string>',
            start: '2023-11-07T05:31:56Z',
            timezone: '<string>'
          },
          scheduleNoUser: {
            advanced: true,
            cronSpec: '<string>',
            start: '2023-11-07T05:31:56Z',
            timezone: '<string>'
          },
          usageBasedRevocation: {
            appId: '<string>',
            enabledAt: '2023-11-07T05:31:56Z',
            excludedGroupRefs: [{appId: '<string>', id: '<string>'}],
            excludedUserRefs: [{id: '<string>'}],
            includeUsersWithNoActivity: true,
            runDelayed: {coldStartDelayDays: 123},
            runImmediately: {},
            targetedAppUserTypes: [],
            targetedEntitlementRefs: [{appId: '<string>', id: '<string>'}],
            unusedForDays: 123
          },
          userCreated: {condition: '<string>'},
          userProfileChange: {condition: '<string>'},
          webhook: {
            capabilityUrl: {},
            hmac: {},
            jwt: {jwksUrl: '<string>'},
            listenerId: '<string>'
          }
        }
      ],
      enabled: true,
      isDraft: true,
      lastExecutedAt: '2023-11-07T05:31:56Z',
      triggers: [
        {
          accessConflict: {
            allConflictMonitors: true,
            conflictMonitorRefs: {conflictMonitorRefs: [{id: '<string>'}]}
          },
          appUserCreated: {appId: '<string>', appIdCel: '<string>', condition: '<string>'},
          appUserUpdated: {appId: '<string>', appIdCel: '<string>', condition: '<string>'},
          grantDeleted: {
            grantTriggerFilter: {
              accountFilter: {},
              grantFilter: {},
              inclusionAll: {},
              inclusionCriteria: {
                appIds: ['<string>'],
                complianceFrameworkIds: ['<string>'],
                resourceTypeIds: ['<string>'],
                riskLevelIds: ['<string>']
              },
              inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
              inclusionListCel: {appEntitlementRefsCel: '<string>'}
            }
          },
          grantFound: {
            grantTriggerFilter: {
              accountFilter: {},
              grantFilter: {},
              inclusionAll: {},
              inclusionCriteria: {
                appIds: ['<string>'],
                complianceFrameworkIds: ['<string>'],
                resourceTypeIds: ['<string>'],
                riskLevelIds: ['<string>']
              },
              inclusionList: {appEntitlementRefs: [{appId: '<string>', id: '<string>'}]},
              inclusionListCel: {appEntitlementRefsCel: '<string>'}
            }
          },
          schedule: {
            advanced: true,
            condition: '<string>',
            cronSpec: '<string>',
            skipIfTrueCel: '<string>',
            start: '2023-11-07T05:31:56Z',
            timezone: '<string>'
          },
          scheduleAppUser: {
            appId: '<string>',
            condition: '<string>',
            cronSpec: '<string>',
            start: '2023-11-07T05:31:56Z',
            timezone: '<string>'
          },
          scheduleNoUser: {
            advanced: true,
            cronSpec: '<string>',
            start: '2023-11-07T05:31:56Z',
            timezone: '<string>'
          },
          usageBasedRevocation: {
            appId: '<string>',
            enabledAt: '2023-11-07T05:31:56Z',
            excludedGroupRefs: [{appId: '<string>', id: '<string>'}],
            excludedUserRefs: [{id: '<string>'}],
            includeUsersWithNoActivity: true,
            runDelayed: {coldStartDelayDays: 123},
            runImmediately: {},
            targetedAppUserTypes: [],
            targetedEntitlementRefs: [{appId: '<string>', id: '<string>'}],
            unusedForDays: 123
          },
          userCreated: {condition: '<string>'},
          userProfileChange: {condition: '<string>'},
          webhook: {
            capabilityUrl: {},
            hmac: {},
            jwt: {jwksUrl: '<string>'},
            listenerId: '<string>'
          }
        }
      ]
    },
    updateMask: '<string>'
  })
};

fetch('https://{tenantDomain}.conductor.one/api/v1/automations/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://{tenantDomain}.conductor.one/api/v1/automations/{id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'automation' => [
        'annotations' => [
                
        ],
        'appId' => '<string>',
        'automationSteps' => [
                [
                                'accountLifecycleAction' => [
                                                                'accountInContext' => [
                                                                                                                                
                                                                ],
                                                                'accountRef' => [
                                                                                                                                'accountIdCel' => '<string>'
                                                                ],
                                                                'actionName' => '<string>',
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'callFunction' => [
                                                                'args' => [
                                                                                                                                
                                                                ],
                                                                'functionId' => '<string>'
                                ],
                                'connectorAction' => [
                                                                'actionName' => '<string>',
                                                                'argsTemplate' => [
                                                                                                                                
                                                                ],
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'resourceTypeId' => '<string>'
                                ],
                                'connectorCreateAccount' => [
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'passwordCel' => '<string>',
                                                                'userIdCel' => '<string>',
                                                                'userProperties' => [
                                                                                                                                'displayNameCel' => '<string>',
                                                                                                                                'emailCel' => '<string>',
                                                                                                                                'profileAttributeCel' => '<string>',
                                                                                                                                'usernameCel' => '<string>'
                                                                ]
                                ],
                                'createAccessReview' => [
                                                                'accessReviewTemplateCel' => '<string>',
                                                                'accessReviewTemplateId' => '<string>',
                                                                'campaignName' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'createRevokeTasks' => [
                                                                'appEntitlementRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'appEntitlementRefsCel' => '<string>',
                                                                'excludedAppEntitlementRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'excludedAppEntitlementRefsCel' => '<string>',
                                                                'revokeAll' => true,
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'createRevokeTasksV2' => [
                                                                'exclusionCriteria' => [
                                                                                                                                'excludedAppIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedComplianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedResourceTypeIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedRiskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'exclusionList' => [
                                                                                                                                'excludedAppEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'exclusionListCel' => [
                                                                                                                                'excludedAppEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'exclusionNone' => [
                                                                                                                                
                                                                ],
                                                                'inclusionAccessOnly' => [
                                                                                                                                
                                                                ],
                                                                'inclusionAll' => [
                                                                                                                                
                                                                ],
                                                                'inclusionCriteria' => [
                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'resourceTypeIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'inclusionList' => [
                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'inclusionListCel' => [
                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'evaluateExpressions' => [
                                                                'expressions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'expressionCel' => '<string>',
                                                                                                                                                                                                                                                                'isSecret' => true,
                                                                                                                                                                                                                                                                'key' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'generatePassword' => [
                                                                'passwordPolicyId' => '<string>',
                                                                'policy' => [
                                                                                                                                'customCharacters' => '<string>',
                                                                                                                                'excludedCharacters' => '<string>',
                                                                                                                                'maxCharacterCount' => 123,
                                                                                                                                'minCharacterCount' => 123,
                                                                                                                                'noRestrictions' => true,
                                                                                                                                'requireLowercase' => true,
                                                                                                                                'requireNumbers' => true,
                                                                                                                                'requireSpecialCharacters' => true,
                                                                                                                                'requireUppercase' => true
                                                                ]
                                ],
                                'grantEntitlements' => [
                                                                'exclusionCriteria' => [
                                                                                                                                'excludedAppIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedComplianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedRiskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'exclusionList' => [
                                                                                                                                'excludedAppEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'exclusionListCel' => [
                                                                                                                                'excludedAppEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'exclusionNone' => [
                                                                                                                                
                                                                ],
                                                                'inclusionCriteria' => [
                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'inclusionList' => [
                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'inclusionListCel' => [
                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'removeFromDelegation' => [
                                                                'replacementUserIdCel' => '<string>',
                                                                'replacementUserRef' => [
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'runAutomation' => [
                                                                'automationTemplateIdCel' => '<string>',
                                                                'automationTemplateRef' => [
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'context' => [
                                                                                                                                'context' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'sendEmail' => [
                                                                'body' => '<string>',
                                                                'email' => '<string>',
                                                                'emailCel' => '<string>',
                                                                'subject' => '<string>',
                                                                'title' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'sendSlackMessage' => [
                                                                'body' => '<string>',
                                                                'channelName' => '<string>',
                                                                'channelNameCel' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'setCredential' => [
                                                                'accountIdCel' => '<string>',
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'passwordCel' => '<string>'
                                ],
                                'skipIfTrueCel' => '<string>',
                                'stepDisplayName' => '<string>',
                                'stepName' => '<string>',
                                'storeCredential' => [
                                                                'appIdCel' => '<string>',
                                                                'credentialCel' => '<string>',
                                                                'expiry' => '<string>',
                                                                'labelCel' => '<string>',
                                                                'maxViews' => 123,
                                                                'recipientCel' => '<string>',
                                                                'recipientEmailCel' => '<string>',
                                                                'ttl' => '<string>'
                                ],
                                'taskAction' => [
                                                                'close' => [
                                                                                                                                'useSubjectUser' => true,
                                                                                                                                'userIdCel' => '<string>',
                                                                                                                                'userRef' => [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'reassign' => [
                                                                                                                                'assigneeUserIdCel' => '<string>',
                                                                                                                                'assigneeUserRef' => [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ],
                                                                                                                                'subjectUserIdCel' => '<string>',
                                                                                                                                'subjectUserRef' => [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ],
                                                                                                                                'useSubjectUser' => true
                                                                ],
                                                                'taskTypes' => [
                                                                                                                                
                                                                ]
                                ],
                                'unenrollFromAllAccessProfiles' => [
                                                                'catalogIds' => [
                                                                                                                                '<string>'
                                                                ],
                                                                'catalogIdsCel' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'updateUser' => [
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'userStatusCel' => '<string>'
                                ],
                                'waitForDuration' => [
                                                                'duration' => '<string>'
                                ],
                                'webhook' => [
                                                                'payload' => [
                                                                                                                                
                                                                ],
                                                                'webhookId' => '<string>',
                                                                'webhookIdCel' => '<string>'
                                ]
                ]
        ],
        'circuitBreaker' => [
                'observedCount' => 123,
                'threshold' => 123,
                'trippedAt' => '2023-11-07T05:31:56Z'
        ],
        'circuitBreakerMax' => 123,
        'context' => [
                'context' => [
                                
                ]
        ],
        'createdAt' => '2023-11-07T05:31:56Z',
        'currentVersion' => '<string>',
        'description' => '<string>',
        'displayName' => '<string>',
        'draftAutomationSteps' => [
                [
                                'accountLifecycleAction' => [
                                                                'accountInContext' => [
                                                                                                                                
                                                                ],
                                                                'accountRef' => [
                                                                                                                                'accountIdCel' => '<string>'
                                                                ],
                                                                'actionName' => '<string>',
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'callFunction' => [
                                                                'args' => [
                                                                                                                                
                                                                ],
                                                                'functionId' => '<string>'
                                ],
                                'connectorAction' => [
                                                                'actionName' => '<string>',
                                                                'argsTemplate' => [
                                                                                                                                
                                                                ],
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'resourceTypeId' => '<string>'
                                ],
                                'connectorCreateAccount' => [
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'passwordCel' => '<string>',
                                                                'userIdCel' => '<string>',
                                                                'userProperties' => [
                                                                                                                                'displayNameCel' => '<string>',
                                                                                                                                'emailCel' => '<string>',
                                                                                                                                'profileAttributeCel' => '<string>',
                                                                                                                                'usernameCel' => '<string>'
                                                                ]
                                ],
                                'createAccessReview' => [
                                                                'accessReviewTemplateCel' => '<string>',
                                                                'accessReviewTemplateId' => '<string>',
                                                                'campaignName' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'createRevokeTasks' => [
                                                                'appEntitlementRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'appEntitlementRefsCel' => '<string>',
                                                                'excludedAppEntitlementRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'excludedAppEntitlementRefsCel' => '<string>',
                                                                'revokeAll' => true,
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'createRevokeTasksV2' => [
                                                                'exclusionCriteria' => [
                                                                                                                                'excludedAppIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedComplianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedResourceTypeIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedRiskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'exclusionList' => [
                                                                                                                                'excludedAppEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'exclusionListCel' => [
                                                                                                                                'excludedAppEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'exclusionNone' => [
                                                                                                                                
                                                                ],
                                                                'inclusionAccessOnly' => [
                                                                                                                                
                                                                ],
                                                                'inclusionAll' => [
                                                                                                                                
                                                                ],
                                                                'inclusionCriteria' => [
                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'resourceTypeIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'inclusionList' => [
                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'inclusionListCel' => [
                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'evaluateExpressions' => [
                                                                'expressions' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'expressionCel' => '<string>',
                                                                                                                                                                                                                                                                'isSecret' => true,
                                                                                                                                                                                                                                                                'key' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'generatePassword' => [
                                                                'passwordPolicyId' => '<string>',
                                                                'policy' => [
                                                                                                                                'customCharacters' => '<string>',
                                                                                                                                'excludedCharacters' => '<string>',
                                                                                                                                'maxCharacterCount' => 123,
                                                                                                                                'minCharacterCount' => 123,
                                                                                                                                'noRestrictions' => true,
                                                                                                                                'requireLowercase' => true,
                                                                                                                                'requireNumbers' => true,
                                                                                                                                'requireSpecialCharacters' => true,
                                                                                                                                'requireUppercase' => true
                                                                ]
                                ],
                                'grantEntitlements' => [
                                                                'exclusionCriteria' => [
                                                                                                                                'excludedAppIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedComplianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'excludedRiskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'exclusionList' => [
                                                                                                                                'excludedAppEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'exclusionListCel' => [
                                                                                                                                'excludedAppEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'exclusionNone' => [
                                                                                                                                
                                                                ],
                                                                'inclusionCriteria' => [
                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ],
                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                ]
                                                                ],
                                                                'inclusionList' => [
                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ],
                                                                'inclusionListCel' => [
                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                ],
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'removeFromDelegation' => [
                                                                'replacementUserIdCel' => '<string>',
                                                                'replacementUserRef' => [
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ]
                                ],
                                'runAutomation' => [
                                                                'automationTemplateIdCel' => '<string>',
                                                                'automationTemplateRef' => [
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'context' => [
                                                                                                                                'context' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ]
                                                                ]
                                ],
                                'sendEmail' => [
                                                                'body' => '<string>',
                                                                'email' => '<string>',
                                                                'emailCel' => '<string>',
                                                                'subject' => '<string>',
                                                                'title' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'sendSlackMessage' => [
                                                                'body' => '<string>',
                                                                'channelName' => '<string>',
                                                                'channelNameCel' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'setCredential' => [
                                                                'accountIdCel' => '<string>',
                                                                'connectorRef' => [
                                                                                                                                'appId' => '<string>',
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'passwordCel' => '<string>'
                                ],
                                'skipIfTrueCel' => '<string>',
                                'stepDisplayName' => '<string>',
                                'stepName' => '<string>',
                                'storeCredential' => [
                                                                'appIdCel' => '<string>',
                                                                'credentialCel' => '<string>',
                                                                'expiry' => '<string>',
                                                                'labelCel' => '<string>',
                                                                'maxViews' => 123,
                                                                'recipientCel' => '<string>',
                                                                'recipientEmailCel' => '<string>',
                                                                'ttl' => '<string>'
                                ],
                                'taskAction' => [
                                                                'close' => [
                                                                                                                                'useSubjectUser' => true,
                                                                                                                                'userIdCel' => '<string>',
                                                                                                                                'userRef' => [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'reassign' => [
                                                                                                                                'assigneeUserIdCel' => '<string>',
                                                                                                                                'assigneeUserRef' => [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ],
                                                                                                                                'subjectUserIdCel' => '<string>',
                                                                                                                                'subjectUserRef' => [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ],
                                                                                                                                'useSubjectUser' => true
                                                                ],
                                                                'taskTypes' => [
                                                                                                                                
                                                                ]
                                ],
                                'unenrollFromAllAccessProfiles' => [
                                                                'catalogIds' => [
                                                                                                                                '<string>'
                                                                ],
                                                                'catalogIdsCel' => '<string>',
                                                                'useSubjectUser' => true,
                                                                'userIdsCel' => '<string>',
                                                                'userRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'updateUser' => [
                                                                'useSubjectUser' => true,
                                                                'userIdCel' => '<string>',
                                                                'userRef' => [
                                                                                                                                'id' => '<string>'
                                                                ],
                                                                'userStatusCel' => '<string>'
                                ],
                                'waitForDuration' => [
                                                                'duration' => '<string>'
                                ],
                                'webhook' => [
                                                                'payload' => [
                                                                                                                                
                                                                ],
                                                                'webhookId' => '<string>',
                                                                'webhookIdCel' => '<string>'
                                ]
                ]
        ],
        'draftTriggers' => [
                [
                                'accessConflict' => [
                                                                'allConflictMonitors' => true,
                                                                'conflictMonitorRefs' => [
                                                                                                                                'conflictMonitorRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'appUserCreated' => [
                                                                'appId' => '<string>',
                                                                'appIdCel' => '<string>',
                                                                'condition' => '<string>'
                                ],
                                'appUserUpdated' => [
                                                                'appId' => '<string>',
                                                                'appIdCel' => '<string>',
                                                                'condition' => '<string>'
                                ],
                                'grantDeleted' => [
                                                                'grantTriggerFilter' => [
                                                                                                                                'accountFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'grantFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionAll' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionCriteria' => [
                                                                                                                                                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resourceTypeIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionList' => [
                                                                                                                                                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionListCel' => [
                                                                                                                                                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'grantFound' => [
                                                                'grantTriggerFilter' => [
                                                                                                                                'accountFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'grantFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionAll' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionCriteria' => [
                                                                                                                                                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resourceTypeIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionList' => [
                                                                                                                                                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionListCel' => [
                                                                                                                                                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'schedule' => [
                                                                'advanced' => true,
                                                                'condition' => '<string>',
                                                                'cronSpec' => '<string>',
                                                                'skipIfTrueCel' => '<string>',
                                                                'start' => '2023-11-07T05:31:56Z',
                                                                'timezone' => '<string>'
                                ],
                                'scheduleAppUser' => [
                                                                'appId' => '<string>',
                                                                'condition' => '<string>',
                                                                'cronSpec' => '<string>',
                                                                'start' => '2023-11-07T05:31:56Z',
                                                                'timezone' => '<string>'
                                ],
                                'scheduleNoUser' => [
                                                                'advanced' => true,
                                                                'cronSpec' => '<string>',
                                                                'start' => '2023-11-07T05:31:56Z',
                                                                'timezone' => '<string>'
                                ],
                                'usageBasedRevocation' => [
                                                                'appId' => '<string>',
                                                                'enabledAt' => '2023-11-07T05:31:56Z',
                                                                'excludedGroupRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'excludedUserRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'includeUsersWithNoActivity' => true,
                                                                'runDelayed' => [
                                                                                                                                'coldStartDelayDays' => 123
                                                                ],
                                                                'runImmediately' => [
                                                                                                                                
                                                                ],
                                                                'targetedAppUserTypes' => [
                                                                                                                                
                                                                ],
                                                                'targetedEntitlementRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'unusedForDays' => 123
                                ],
                                'userCreated' => [
                                                                'condition' => '<string>'
                                ],
                                'userProfileChange' => [
                                                                'condition' => '<string>'
                                ],
                                'webhook' => [
                                                                'capabilityUrl' => [
                                                                                                                                
                                                                ],
                                                                'hmac' => [
                                                                                                                                
                                                                ],
                                                                'jwt' => [
                                                                                                                                'jwksUrl' => '<string>'
                                                                ],
                                                                'listenerId' => '<string>'
                                ]
                ]
        ],
        'enabled' => true,
        'isDraft' => true,
        'lastExecutedAt' => '2023-11-07T05:31:56Z',
        'triggers' => [
                [
                                'accessConflict' => [
                                                                'allConflictMonitors' => true,
                                                                'conflictMonitorRefs' => [
                                                                                                                                'conflictMonitorRefs' => [
                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ]
                                                                ]
                                ],
                                'appUserCreated' => [
                                                                'appId' => '<string>',
                                                                'appIdCel' => '<string>',
                                                                'condition' => '<string>'
                                ],
                                'appUserUpdated' => [
                                                                'appId' => '<string>',
                                                                'appIdCel' => '<string>',
                                                                'condition' => '<string>'
                                ],
                                'grantDeleted' => [
                                                                'grantTriggerFilter' => [
                                                                                                                                'accountFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'grantFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionAll' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionCriteria' => [
                                                                                                                                                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resourceTypeIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionList' => [
                                                                                                                                                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionListCel' => [
                                                                                                                                                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'grantFound' => [
                                                                'grantTriggerFilter' => [
                                                                                                                                'accountFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'grantFilter' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionAll' => [
                                                                                                                                                                                                                                                                
                                                                                                                                ],
                                                                                                                                'inclusionCriteria' => [
                                                                                                                                                                                                                                                                'appIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'complianceFrameworkIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'resourceTypeIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ],
                                                                                                                                                                                                                                                                'riskLevelIds' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                '<string>'
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionList' => [
                                                                                                                                                                                                                                                                'appEntitlementRefs' => [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                [
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ]
                                                                                                                                                                                                                                                                ]
                                                                                                                                ],
                                                                                                                                'inclusionListCel' => [
                                                                                                                                                                                                                                                                'appEntitlementRefsCel' => '<string>'
                                                                                                                                ]
                                                                ]
                                ],
                                'schedule' => [
                                                                'advanced' => true,
                                                                'condition' => '<string>',
                                                                'cronSpec' => '<string>',
                                                                'skipIfTrueCel' => '<string>',
                                                                'start' => '2023-11-07T05:31:56Z',
                                                                'timezone' => '<string>'
                                ],
                                'scheduleAppUser' => [
                                                                'appId' => '<string>',
                                                                'condition' => '<string>',
                                                                'cronSpec' => '<string>',
                                                                'start' => '2023-11-07T05:31:56Z',
                                                                'timezone' => '<string>'
                                ],
                                'scheduleNoUser' => [
                                                                'advanced' => true,
                                                                'cronSpec' => '<string>',
                                                                'start' => '2023-11-07T05:31:56Z',
                                                                'timezone' => '<string>'
                                ],
                                'usageBasedRevocation' => [
                                                                'appId' => '<string>',
                                                                'enabledAt' => '2023-11-07T05:31:56Z',
                                                                'excludedGroupRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'excludedUserRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'includeUsersWithNoActivity' => true,
                                                                'runDelayed' => [
                                                                                                                                'coldStartDelayDays' => 123
                                                                ],
                                                                'runImmediately' => [
                                                                                                                                
                                                                ],
                                                                'targetedAppUserTypes' => [
                                                                                                                                
                                                                ],
                                                                'targetedEntitlementRefs' => [
                                                                                                                                [
                                                                                                                                                                                                                                                                'appId' => '<string>',
                                                                                                                                                                                                                                                                'id' => '<string>'
                                                                                                                                ]
                                                                ],
                                                                'unusedForDays' => 123
                                ],
                                'userCreated' => [
                                                                'condition' => '<string>'
                                ],
                                'userProfileChange' => [
                                                                'condition' => '<string>'
                                ],
                                'webhook' => [
                                                                'capabilityUrl' => [
                                                                                                                                
                                                                ],
                                                                'hmac' => [
                                                                                                                                
                                                                ],
                                                                'jwt' => [
                                                                                                                                'jwksUrl' => '<string>'
                                                                ],
                                                                'listenerId' => '<string>'
                                ]
                ]
        ]
    ],
    'updateMask' => '<string>'
  ]),
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>",
    "Content-Type: application/json"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
HttpResponse<String> response = Unirest.post("https://{tenantDomain}.conductor.one/api/v1/automations/{id}")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"automation\": {\n    \"annotations\": {},\n    \"appId\": \"<string>\",\n    \"automationSteps\": [\n      {\n        \"accountLifecycleAction\": {\n          \"accountInContext\": {},\n          \"accountRef\": {\n            \"accountIdCel\": \"<string>\"\n          },\n          \"actionName\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          }\n        },\n        \"callFunction\": {\n          \"args\": {},\n          \"functionId\": \"<string>\"\n        },\n        \"connectorAction\": {\n          \"actionName\": \"<string>\",\n          \"argsTemplate\": {},\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"resourceTypeId\": \"<string>\"\n        },\n        \"connectorCreateAccount\": {\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\",\n          \"userIdCel\": \"<string>\",\n          \"userProperties\": {\n            \"displayNameCel\": \"<string>\",\n            \"emailCel\": \"<string>\",\n            \"profileAttributeCel\": \"<string>\",\n            \"usernameCel\": \"<string>\"\n          }\n        },\n        \"createAccessReview\": {\n          \"accessReviewTemplateCel\": \"<string>\",\n          \"accessReviewTemplateId\": \"<string>\",\n          \"campaignName\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"createRevokeTasks\": {\n          \"appEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"appEntitlementRefsCel\": \"<string>\",\n          \"excludedAppEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedAppEntitlementRefsCel\": \"<string>\",\n          \"revokeAll\": true,\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"createRevokeTasksV2\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedResourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionAccessOnly\": {},\n          \"inclusionAll\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"resourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"evaluateExpressions\": {\n          \"expressions\": [\n            {\n              \"expressionCel\": \"<string>\",\n              \"isSecret\": true,\n              \"key\": \"<string>\"\n            }\n          ]\n        },\n        \"generatePassword\": {\n          \"passwordPolicyId\": \"<string>\",\n          \"policy\": {\n            \"customCharacters\": \"<string>\",\n            \"excludedCharacters\": \"<string>\",\n            \"maxCharacterCount\": 123,\n            \"minCharacterCount\": 123,\n            \"noRestrictions\": true,\n            \"requireLowercase\": true,\n            \"requireNumbers\": true,\n            \"requireSpecialCharacters\": true,\n            \"requireUppercase\": true\n          }\n        },\n        \"grantEntitlements\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"removeFromDelegation\": {\n          \"replacementUserIdCel\": \"<string>\",\n          \"replacementUserRef\": {\n            \"id\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"runAutomation\": {\n          \"automationTemplateIdCel\": \"<string>\",\n          \"automationTemplateRef\": {\n            \"id\": \"<string>\"\n          },\n          \"context\": {\n            \"context\": {}\n          }\n        },\n        \"sendEmail\": {\n          \"body\": \"<string>\",\n          \"email\": \"<string>\",\n          \"emailCel\": \"<string>\",\n          \"subject\": \"<string>\",\n          \"title\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"sendSlackMessage\": {\n          \"body\": \"<string>\",\n          \"channelName\": \"<string>\",\n          \"channelNameCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"setCredential\": {\n          \"accountIdCel\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\"\n        },\n        \"skipIfTrueCel\": \"<string>\",\n        \"stepDisplayName\": \"<string>\",\n        \"stepName\": \"<string>\",\n        \"storeCredential\": {\n          \"appIdCel\": \"<string>\",\n          \"credentialCel\": \"<string>\",\n          \"expiry\": \"<string>\",\n          \"labelCel\": \"<string>\",\n          \"maxViews\": 123,\n          \"recipientCel\": \"<string>\",\n          \"recipientEmailCel\": \"<string>\",\n          \"ttl\": \"<string>\"\n        },\n        \"taskAction\": {\n          \"close\": {\n            \"useSubjectUser\": true,\n            \"userIdCel\": \"<string>\",\n            \"userRef\": {\n              \"id\": \"<string>\"\n            }\n          },\n          \"reassign\": {\n            \"assigneeUserIdCel\": \"<string>\",\n            \"assigneeUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"subjectUserIdCel\": \"<string>\",\n            \"subjectUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"useSubjectUser\": true\n          },\n          \"taskTypes\": []\n        },\n        \"unenrollFromAllAccessProfiles\": {\n          \"catalogIds\": [\n            \"<string>\"\n          ],\n          \"catalogIdsCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"updateUser\": {\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          },\n          \"userStatusCel\": \"<string>\"\n        },\n        \"waitForDuration\": {\n          \"duration\": \"<string>\"\n        },\n        \"webhook\": {\n          \"payload\": {},\n          \"webhookId\": \"<string>\",\n          \"webhookIdCel\": \"<string>\"\n        }\n      }\n    ],\n    \"circuitBreaker\": {\n      \"observedCount\": 123,\n      \"threshold\": 123,\n      \"trippedAt\": \"2023-11-07T05:31:56Z\"\n    },\n    \"circuitBreakerMax\": 123,\n    \"context\": {\n      \"context\": {}\n    },\n    \"createdAt\": \"2023-11-07T05:31:56Z\",\n    \"currentVersion\": \"<string>\",\n    \"description\": \"<string>\",\n    \"displayName\": \"<string>\",\n    \"draftAutomationSteps\": [\n      {\n        \"accountLifecycleAction\": {\n          \"accountInContext\": {},\n          \"accountRef\": {\n            \"accountIdCel\": \"<string>\"\n          },\n          \"actionName\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          }\n        },\n        \"callFunction\": {\n          \"args\": {},\n          \"functionId\": \"<string>\"\n        },\n        \"connectorAction\": {\n          \"actionName\": \"<string>\",\n          \"argsTemplate\": {},\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"resourceTypeId\": \"<string>\"\n        },\n        \"connectorCreateAccount\": {\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\",\n          \"userIdCel\": \"<string>\",\n          \"userProperties\": {\n            \"displayNameCel\": \"<string>\",\n            \"emailCel\": \"<string>\",\n            \"profileAttributeCel\": \"<string>\",\n            \"usernameCel\": \"<string>\"\n          }\n        },\n        \"createAccessReview\": {\n          \"accessReviewTemplateCel\": \"<string>\",\n          \"accessReviewTemplateId\": \"<string>\",\n          \"campaignName\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"createRevokeTasks\": {\n          \"appEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"appEntitlementRefsCel\": \"<string>\",\n          \"excludedAppEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedAppEntitlementRefsCel\": \"<string>\",\n          \"revokeAll\": true,\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"createRevokeTasksV2\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedResourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionAccessOnly\": {},\n          \"inclusionAll\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"resourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"evaluateExpressions\": {\n          \"expressions\": [\n            {\n              \"expressionCel\": \"<string>\",\n              \"isSecret\": true,\n              \"key\": \"<string>\"\n            }\n          ]\n        },\n        \"generatePassword\": {\n          \"passwordPolicyId\": \"<string>\",\n          \"policy\": {\n            \"customCharacters\": \"<string>\",\n            \"excludedCharacters\": \"<string>\",\n            \"maxCharacterCount\": 123,\n            \"minCharacterCount\": 123,\n            \"noRestrictions\": true,\n            \"requireLowercase\": true,\n            \"requireNumbers\": true,\n            \"requireSpecialCharacters\": true,\n            \"requireUppercase\": true\n          }\n        },\n        \"grantEntitlements\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"removeFromDelegation\": {\n          \"replacementUserIdCel\": \"<string>\",\n          \"replacementUserRef\": {\n            \"id\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"runAutomation\": {\n          \"automationTemplateIdCel\": \"<string>\",\n          \"automationTemplateRef\": {\n            \"id\": \"<string>\"\n          },\n          \"context\": {\n            \"context\": {}\n          }\n        },\n        \"sendEmail\": {\n          \"body\": \"<string>\",\n          \"email\": \"<string>\",\n          \"emailCel\": \"<string>\",\n          \"subject\": \"<string>\",\n          \"title\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"sendSlackMessage\": {\n          \"body\": \"<string>\",\n          \"channelName\": \"<string>\",\n          \"channelNameCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"setCredential\": {\n          \"accountIdCel\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\"\n        },\n        \"skipIfTrueCel\": \"<string>\",\n        \"stepDisplayName\": \"<string>\",\n        \"stepName\": \"<string>\",\n        \"storeCredential\": {\n          \"appIdCel\": \"<string>\",\n          \"credentialCel\": \"<string>\",\n          \"expiry\": \"<string>\",\n          \"labelCel\": \"<string>\",\n          \"maxViews\": 123,\n          \"recipientCel\": \"<string>\",\n          \"recipientEmailCel\": \"<string>\",\n          \"ttl\": \"<string>\"\n        },\n        \"taskAction\": {\n          \"close\": {\n            \"useSubjectUser\": true,\n            \"userIdCel\": \"<string>\",\n            \"userRef\": {\n              \"id\": \"<string>\"\n            }\n          },\n          \"reassign\": {\n            \"assigneeUserIdCel\": \"<string>\",\n            \"assigneeUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"subjectUserIdCel\": \"<string>\",\n            \"subjectUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"useSubjectUser\": true\n          },\n          \"taskTypes\": []\n        },\n        \"unenrollFromAllAccessProfiles\": {\n          \"catalogIds\": [\n            \"<string>\"\n          ],\n          \"catalogIdsCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"updateUser\": {\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          },\n          \"userStatusCel\": \"<string>\"\n        },\n        \"waitForDuration\": {\n          \"duration\": \"<string>\"\n        },\n        \"webhook\": {\n          \"payload\": {},\n          \"webhookId\": \"<string>\",\n          \"webhookIdCel\": \"<string>\"\n        }\n      }\n    ],\n    \"draftTriggers\": [\n      {\n        \"accessConflict\": {\n          \"allConflictMonitors\": true,\n          \"conflictMonitorRefs\": {\n            \"conflictMonitorRefs\": [\n              {\n                \"id\": \"<string>\"\n              }\n            ]\n          }\n        },\n        \"appUserCreated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"appUserUpdated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"grantDeleted\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"grantFound\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"schedule\": {\n          \"advanced\": true,\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"skipIfTrueCel\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleAppUser\": {\n          \"appId\": \"<string>\",\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleNoUser\": {\n          \"advanced\": true,\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"usageBasedRevocation\": {\n          \"appId\": \"<string>\",\n          \"enabledAt\": \"2023-11-07T05:31:56Z\",\n          \"excludedGroupRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedUserRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ],\n          \"includeUsersWithNoActivity\": true,\n          \"runDelayed\": {\n            \"coldStartDelayDays\": 123\n          },\n          \"runImmediately\": {},\n          \"targetedAppUserTypes\": [],\n          \"targetedEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"unusedForDays\": 123\n        },\n        \"userCreated\": {\n          \"condition\": \"<string>\"\n        },\n        \"userProfileChange\": {\n          \"condition\": \"<string>\"\n        },\n        \"webhook\": {\n          \"capabilityUrl\": {},\n          \"hmac\": {},\n          \"jwt\": {\n            \"jwksUrl\": \"<string>\"\n          },\n          \"listenerId\": \"<string>\"\n        }\n      }\n    ],\n    \"enabled\": true,\n    \"isDraft\": true,\n    \"lastExecutedAt\": \"2023-11-07T05:31:56Z\",\n    \"triggers\": [\n      {\n        \"accessConflict\": {\n          \"allConflictMonitors\": true,\n          \"conflictMonitorRefs\": {\n            \"conflictMonitorRefs\": [\n              {\n                \"id\": \"<string>\"\n              }\n            ]\n          }\n        },\n        \"appUserCreated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"appUserUpdated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"grantDeleted\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"grantFound\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"schedule\": {\n          \"advanced\": true,\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"skipIfTrueCel\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleAppUser\": {\n          \"appId\": \"<string>\",\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleNoUser\": {\n          \"advanced\": true,\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"usageBasedRevocation\": {\n          \"appId\": \"<string>\",\n          \"enabledAt\": \"2023-11-07T05:31:56Z\",\n          \"excludedGroupRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedUserRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ],\n          \"includeUsersWithNoActivity\": true,\n          \"runDelayed\": {\n            \"coldStartDelayDays\": 123\n          },\n          \"runImmediately\": {},\n          \"targetedAppUserTypes\": [],\n          \"targetedEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"unusedForDays\": 123\n        },\n        \"userCreated\": {\n          \"condition\": \"<string>\"\n        },\n        \"userProfileChange\": {\n          \"condition\": \"<string>\"\n        },\n        \"webhook\": {\n          \"capabilityUrl\": {},\n          \"hmac\": {},\n          \"jwt\": {\n            \"jwksUrl\": \"<string>\"\n          },\n          \"listenerId\": \"<string>\"\n        }\n      }\n    ]\n  },\n  \"updateMask\": \"<string>\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://{tenantDomain}.conductor.one/api/v1/automations/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"automation\": {\n    \"annotations\": {},\n    \"appId\": \"<string>\",\n    \"automationSteps\": [\n      {\n        \"accountLifecycleAction\": {\n          \"accountInContext\": {},\n          \"accountRef\": {\n            \"accountIdCel\": \"<string>\"\n          },\n          \"actionName\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          }\n        },\n        \"callFunction\": {\n          \"args\": {},\n          \"functionId\": \"<string>\"\n        },\n        \"connectorAction\": {\n          \"actionName\": \"<string>\",\n          \"argsTemplate\": {},\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"resourceTypeId\": \"<string>\"\n        },\n        \"connectorCreateAccount\": {\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\",\n          \"userIdCel\": \"<string>\",\n          \"userProperties\": {\n            \"displayNameCel\": \"<string>\",\n            \"emailCel\": \"<string>\",\n            \"profileAttributeCel\": \"<string>\",\n            \"usernameCel\": \"<string>\"\n          }\n        },\n        \"createAccessReview\": {\n          \"accessReviewTemplateCel\": \"<string>\",\n          \"accessReviewTemplateId\": \"<string>\",\n          \"campaignName\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"createRevokeTasks\": {\n          \"appEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"appEntitlementRefsCel\": \"<string>\",\n          \"excludedAppEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedAppEntitlementRefsCel\": \"<string>\",\n          \"revokeAll\": true,\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"createRevokeTasksV2\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedResourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionAccessOnly\": {},\n          \"inclusionAll\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"resourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"evaluateExpressions\": {\n          \"expressions\": [\n            {\n              \"expressionCel\": \"<string>\",\n              \"isSecret\": true,\n              \"key\": \"<string>\"\n            }\n          ]\n        },\n        \"generatePassword\": {\n          \"passwordPolicyId\": \"<string>\",\n          \"policy\": {\n            \"customCharacters\": \"<string>\",\n            \"excludedCharacters\": \"<string>\",\n            \"maxCharacterCount\": 123,\n            \"minCharacterCount\": 123,\n            \"noRestrictions\": true,\n            \"requireLowercase\": true,\n            \"requireNumbers\": true,\n            \"requireSpecialCharacters\": true,\n            \"requireUppercase\": true\n          }\n        },\n        \"grantEntitlements\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"removeFromDelegation\": {\n          \"replacementUserIdCel\": \"<string>\",\n          \"replacementUserRef\": {\n            \"id\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"runAutomation\": {\n          \"automationTemplateIdCel\": \"<string>\",\n          \"automationTemplateRef\": {\n            \"id\": \"<string>\"\n          },\n          \"context\": {\n            \"context\": {}\n          }\n        },\n        \"sendEmail\": {\n          \"body\": \"<string>\",\n          \"email\": \"<string>\",\n          \"emailCel\": \"<string>\",\n          \"subject\": \"<string>\",\n          \"title\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"sendSlackMessage\": {\n          \"body\": \"<string>\",\n          \"channelName\": \"<string>\",\n          \"channelNameCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"setCredential\": {\n          \"accountIdCel\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\"\n        },\n        \"skipIfTrueCel\": \"<string>\",\n        \"stepDisplayName\": \"<string>\",\n        \"stepName\": \"<string>\",\n        \"storeCredential\": {\n          \"appIdCel\": \"<string>\",\n          \"credentialCel\": \"<string>\",\n          \"expiry\": \"<string>\",\n          \"labelCel\": \"<string>\",\n          \"maxViews\": 123,\n          \"recipientCel\": \"<string>\",\n          \"recipientEmailCel\": \"<string>\",\n          \"ttl\": \"<string>\"\n        },\n        \"taskAction\": {\n          \"close\": {\n            \"useSubjectUser\": true,\n            \"userIdCel\": \"<string>\",\n            \"userRef\": {\n              \"id\": \"<string>\"\n            }\n          },\n          \"reassign\": {\n            \"assigneeUserIdCel\": \"<string>\",\n            \"assigneeUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"subjectUserIdCel\": \"<string>\",\n            \"subjectUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"useSubjectUser\": true\n          },\n          \"taskTypes\": []\n        },\n        \"unenrollFromAllAccessProfiles\": {\n          \"catalogIds\": [\n            \"<string>\"\n          ],\n          \"catalogIdsCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"updateUser\": {\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          },\n          \"userStatusCel\": \"<string>\"\n        },\n        \"waitForDuration\": {\n          \"duration\": \"<string>\"\n        },\n        \"webhook\": {\n          \"payload\": {},\n          \"webhookId\": \"<string>\",\n          \"webhookIdCel\": \"<string>\"\n        }\n      }\n    ],\n    \"circuitBreaker\": {\n      \"observedCount\": 123,\n      \"threshold\": 123,\n      \"trippedAt\": \"2023-11-07T05:31:56Z\"\n    },\n    \"circuitBreakerMax\": 123,\n    \"context\": {\n      \"context\": {}\n    },\n    \"createdAt\": \"2023-11-07T05:31:56Z\",\n    \"currentVersion\": \"<string>\",\n    \"description\": \"<string>\",\n    \"displayName\": \"<string>\",\n    \"draftAutomationSteps\": [\n      {\n        \"accountLifecycleAction\": {\n          \"accountInContext\": {},\n          \"accountRef\": {\n            \"accountIdCel\": \"<string>\"\n          },\n          \"actionName\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          }\n        },\n        \"callFunction\": {\n          \"args\": {},\n          \"functionId\": \"<string>\"\n        },\n        \"connectorAction\": {\n          \"actionName\": \"<string>\",\n          \"argsTemplate\": {},\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"resourceTypeId\": \"<string>\"\n        },\n        \"connectorCreateAccount\": {\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\",\n          \"userIdCel\": \"<string>\",\n          \"userProperties\": {\n            \"displayNameCel\": \"<string>\",\n            \"emailCel\": \"<string>\",\n            \"profileAttributeCel\": \"<string>\",\n            \"usernameCel\": \"<string>\"\n          }\n        },\n        \"createAccessReview\": {\n          \"accessReviewTemplateCel\": \"<string>\",\n          \"accessReviewTemplateId\": \"<string>\",\n          \"campaignName\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"createRevokeTasks\": {\n          \"appEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"appEntitlementRefsCel\": \"<string>\",\n          \"excludedAppEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedAppEntitlementRefsCel\": \"<string>\",\n          \"revokeAll\": true,\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"createRevokeTasksV2\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedResourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionAccessOnly\": {},\n          \"inclusionAll\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"resourceTypeIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"evaluateExpressions\": {\n          \"expressions\": [\n            {\n              \"expressionCel\": \"<string>\",\n              \"isSecret\": true,\n              \"key\": \"<string>\"\n            }\n          ]\n        },\n        \"generatePassword\": {\n          \"passwordPolicyId\": \"<string>\",\n          \"policy\": {\n            \"customCharacters\": \"<string>\",\n            \"excludedCharacters\": \"<string>\",\n            \"maxCharacterCount\": 123,\n            \"minCharacterCount\": 123,\n            \"noRestrictions\": true,\n            \"requireLowercase\": true,\n            \"requireNumbers\": true,\n            \"requireSpecialCharacters\": true,\n            \"requireUppercase\": true\n          }\n        },\n        \"grantEntitlements\": {\n          \"exclusionCriteria\": {\n            \"excludedAppIds\": [\n              \"<string>\"\n            ],\n            \"excludedComplianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"excludedRiskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"exclusionList\": {\n            \"excludedAppEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"exclusionListCel\": {\n            \"excludedAppEntitlementRefsCel\": \"<string>\"\n          },\n          \"exclusionNone\": {},\n          \"inclusionCriteria\": {\n            \"appIds\": [\n              \"<string>\"\n            ],\n            \"complianceFrameworkIds\": [\n              \"<string>\"\n            ],\n            \"riskLevelIds\": [\n              \"<string>\"\n            ]\n          },\n          \"inclusionList\": {\n            \"appEntitlementRefs\": [\n              {\n                \"appId\": \"<string>\",\n                \"id\": \"<string>\"\n              }\n            ]\n          },\n          \"inclusionListCel\": {\n            \"appEntitlementRefsCel\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"removeFromDelegation\": {\n          \"replacementUserIdCel\": \"<string>\",\n          \"replacementUserRef\": {\n            \"id\": \"<string>\"\n          },\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          }\n        },\n        \"runAutomation\": {\n          \"automationTemplateIdCel\": \"<string>\",\n          \"automationTemplateRef\": {\n            \"id\": \"<string>\"\n          },\n          \"context\": {\n            \"context\": {}\n          }\n        },\n        \"sendEmail\": {\n          \"body\": \"<string>\",\n          \"email\": \"<string>\",\n          \"emailCel\": \"<string>\",\n          \"subject\": \"<string>\",\n          \"title\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"sendSlackMessage\": {\n          \"body\": \"<string>\",\n          \"channelName\": \"<string>\",\n          \"channelNameCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"setCredential\": {\n          \"accountIdCel\": \"<string>\",\n          \"connectorRef\": {\n            \"appId\": \"<string>\",\n            \"id\": \"<string>\"\n          },\n          \"passwordCel\": \"<string>\"\n        },\n        \"skipIfTrueCel\": \"<string>\",\n        \"stepDisplayName\": \"<string>\",\n        \"stepName\": \"<string>\",\n        \"storeCredential\": {\n          \"appIdCel\": \"<string>\",\n          \"credentialCel\": \"<string>\",\n          \"expiry\": \"<string>\",\n          \"labelCel\": \"<string>\",\n          \"maxViews\": 123,\n          \"recipientCel\": \"<string>\",\n          \"recipientEmailCel\": \"<string>\",\n          \"ttl\": \"<string>\"\n        },\n        \"taskAction\": {\n          \"close\": {\n            \"useSubjectUser\": true,\n            \"userIdCel\": \"<string>\",\n            \"userRef\": {\n              \"id\": \"<string>\"\n            }\n          },\n          \"reassign\": {\n            \"assigneeUserIdCel\": \"<string>\",\n            \"assigneeUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"subjectUserIdCel\": \"<string>\",\n            \"subjectUserRef\": {\n              \"id\": \"<string>\"\n            },\n            \"useSubjectUser\": true\n          },\n          \"taskTypes\": []\n        },\n        \"unenrollFromAllAccessProfiles\": {\n          \"catalogIds\": [\n            \"<string>\"\n          ],\n          \"catalogIdsCel\": \"<string>\",\n          \"useSubjectUser\": true,\n          \"userIdsCel\": \"<string>\",\n          \"userRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ]\n        },\n        \"updateUser\": {\n          \"useSubjectUser\": true,\n          \"userIdCel\": \"<string>\",\n          \"userRef\": {\n            \"id\": \"<string>\"\n          },\n          \"userStatusCel\": \"<string>\"\n        },\n        \"waitForDuration\": {\n          \"duration\": \"<string>\"\n        },\n        \"webhook\": {\n          \"payload\": {},\n          \"webhookId\": \"<string>\",\n          \"webhookIdCel\": \"<string>\"\n        }\n      }\n    ],\n    \"draftTriggers\": [\n      {\n        \"accessConflict\": {\n          \"allConflictMonitors\": true,\n          \"conflictMonitorRefs\": {\n            \"conflictMonitorRefs\": [\n              {\n                \"id\": \"<string>\"\n              }\n            ]\n          }\n        },\n        \"appUserCreated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"appUserUpdated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"grantDeleted\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"grantFound\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"schedule\": {\n          \"advanced\": true,\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"skipIfTrueCel\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleAppUser\": {\n          \"appId\": \"<string>\",\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleNoUser\": {\n          \"advanced\": true,\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"usageBasedRevocation\": {\n          \"appId\": \"<string>\",\n          \"enabledAt\": \"2023-11-07T05:31:56Z\",\n          \"excludedGroupRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedUserRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ],\n          \"includeUsersWithNoActivity\": true,\n          \"runDelayed\": {\n            \"coldStartDelayDays\": 123\n          },\n          \"runImmediately\": {},\n          \"targetedAppUserTypes\": [],\n          \"targetedEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"unusedForDays\": 123\n        },\n        \"userCreated\": {\n          \"condition\": \"<string>\"\n        },\n        \"userProfileChange\": {\n          \"condition\": \"<string>\"\n        },\n        \"webhook\": {\n          \"capabilityUrl\": {},\n          \"hmac\": {},\n          \"jwt\": {\n            \"jwksUrl\": \"<string>\"\n          },\n          \"listenerId\": \"<string>\"\n        }\n      }\n    ],\n    \"enabled\": true,\n    \"isDraft\": true,\n    \"lastExecutedAt\": \"2023-11-07T05:31:56Z\",\n    \"triggers\": [\n      {\n        \"accessConflict\": {\n          \"allConflictMonitors\": true,\n          \"conflictMonitorRefs\": {\n            \"conflictMonitorRefs\": [\n              {\n                \"id\": \"<string>\"\n              }\n            ]\n          }\n        },\n        \"appUserCreated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"appUserUpdated\": {\n          \"appId\": \"<string>\",\n          \"appIdCel\": \"<string>\",\n          \"condition\": \"<string>\"\n        },\n        \"grantDeleted\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"grantFound\": {\n          \"grantTriggerFilter\": {\n            \"accountFilter\": {},\n            \"grantFilter\": {},\n            \"inclusionAll\": {},\n            \"inclusionCriteria\": {\n              \"appIds\": [\n                \"<string>\"\n              ],\n              \"complianceFrameworkIds\": [\n                \"<string>\"\n              ],\n              \"resourceTypeIds\": [\n                \"<string>\"\n              ],\n              \"riskLevelIds\": [\n                \"<string>\"\n              ]\n            },\n            \"inclusionList\": {\n              \"appEntitlementRefs\": [\n                {\n                  \"appId\": \"<string>\",\n                  \"id\": \"<string>\"\n                }\n              ]\n            },\n            \"inclusionListCel\": {\n              \"appEntitlementRefsCel\": \"<string>\"\n            }\n          }\n        },\n        \"schedule\": {\n          \"advanced\": true,\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"skipIfTrueCel\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleAppUser\": {\n          \"appId\": \"<string>\",\n          \"condition\": \"<string>\",\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"scheduleNoUser\": {\n          \"advanced\": true,\n          \"cronSpec\": \"<string>\",\n          \"start\": \"2023-11-07T05:31:56Z\",\n          \"timezone\": \"<string>\"\n        },\n        \"usageBasedRevocation\": {\n          \"appId\": \"<string>\",\n          \"enabledAt\": \"2023-11-07T05:31:56Z\",\n          \"excludedGroupRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"excludedUserRefs\": [\n            {\n              \"id\": \"<string>\"\n            }\n          ],\n          \"includeUsersWithNoActivity\": true,\n          \"runDelayed\": {\n            \"coldStartDelayDays\": 123\n          },\n          \"runImmediately\": {},\n          \"targetedAppUserTypes\": [],\n          \"targetedEntitlementRefs\": [\n            {\n              \"appId\": \"<string>\",\n              \"id\": \"<string>\"\n            }\n          ],\n          \"unusedForDays\": 123\n        },\n        \"userCreated\": {\n          \"condition\": \"<string>\"\n        },\n        \"userProfileChange\": {\n          \"condition\": \"<string>\"\n        },\n        \"webhook\": {\n          \"capabilityUrl\": {},\n          \"hmac\": {},\n          \"jwt\": {\n            \"jwksUrl\": \"<string>\"\n          },\n          \"listenerId\": \"<string>\"\n        }\n      }\n    ]\n  },\n  \"updateMask\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "automation": {
    "annotations": {},
    "appId": "<string>",
    "automationSteps": [
      {
        "accountLifecycleAction": {
          "accountInContext": {},
          "accountRef": {
            "accountIdCel": "<string>"
          },
          "actionName": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          }
        },
        "callFunction": {
          "args": {},
          "functionId": "<string>"
        },
        "connectorAction": {
          "actionName": "<string>",
          "argsTemplate": {},
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "resourceTypeId": "<string>"
        },
        "connectorCreateAccount": {
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>",
          "userIdCel": "<string>",
          "userProperties": {
            "displayNameCel": "<string>",
            "emailCel": "<string>",
            "profileAttributeCel": "<string>",
            "usernameCel": "<string>"
          }
        },
        "createAccessReview": {
          "accessReviewTemplateCel": "<string>",
          "accessReviewTemplateId": "<string>",
          "campaignName": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "createRevokeTasks": {
          "appEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "appEntitlementRefsCel": "<string>",
          "excludedAppEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedAppEntitlementRefsCel": "<string>",
          "revokeAll": true,
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "createRevokeTasksV2": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedResourceTypeIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionAccessOnly": {},
          "inclusionAll": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "resourceTypeIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "evaluateExpressions": {
          "expressions": [
            {
              "expressionCel": "<string>",
              "isSecret": true,
              "key": "<string>"
            }
          ]
        },
        "generatePassword": {
          "passwordPolicyId": "<string>",
          "policy": {
            "customCharacters": "<string>",
            "excludedCharacters": "<string>",
            "maxCharacterCount": 123,
            "minCharacterCount": 123,
            "noRestrictions": true,
            "requireLowercase": true,
            "requireNumbers": true,
            "requireSpecialCharacters": true,
            "requireUppercase": true
          }
        },
        "grantEntitlements": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "removeFromDelegation": {
          "replacementUserIdCel": "<string>",
          "replacementUserRef": {
            "id": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "runAutomation": {
          "automationTemplateIdCel": "<string>",
          "automationTemplateRef": {
            "id": "<string>"
          },
          "context": {
            "context": {}
          }
        },
        "sendEmail": {
          "body": "<string>",
          "email": "<string>",
          "emailCel": "<string>",
          "subject": "<string>",
          "title": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "sendSlackMessage": {
          "body": "<string>",
          "channelName": "<string>",
          "channelNameCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "setCredential": {
          "accountIdCel": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>"
        },
        "skipIfTrueCel": "<string>",
        "stepDisplayName": "<string>",
        "stepName": "<string>",
        "storeCredential": {
          "appIdCel": "<string>",
          "credentialCel": "<string>",
          "expiry": "<string>",
          "labelCel": "<string>",
          "maxViews": 123,
          "recipientCel": "<string>",
          "recipientEmailCel": "<string>",
          "ttl": "<string>"
        },
        "taskAction": {
          "close": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "reassign": {
            "assigneeUserIdCel": "<string>",
            "assigneeUserRef": {
              "id": "<string>"
            },
            "subjectUserIdCel": "<string>",
            "subjectUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true
          },
          "taskTypes": []
        },
        "unenrollFromAllAccessProfiles": {
          "catalogIds": [
            "<string>"
          ],
          "catalogIdsCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "updateUser": {
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          },
          "userStatusCel": "<string>"
        },
        "waitForDuration": {
          "duration": "<string>"
        },
        "webhook": {
          "payload": {},
          "webhookId": "<string>",
          "webhookIdCel": "<string>"
        }
      }
    ],
    "circuitBreaker": {
      "observedCount": 123,
      "threshold": 123,
      "trippedAt": "2023-11-07T05:31:56Z"
    },
    "circuitBreakerMax": 123,
    "context": {
      "context": {}
    },
    "createdAt": "2023-11-07T05:31:56Z",
    "currentVersion": "<string>",
    "description": "<string>",
    "displayName": "<string>",
    "draftAutomationSteps": [
      {
        "accountLifecycleAction": {
          "accountInContext": {},
          "accountRef": {
            "accountIdCel": "<string>"
          },
          "actionName": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          }
        },
        "callFunction": {
          "args": {},
          "functionId": "<string>"
        },
        "connectorAction": {
          "actionName": "<string>",
          "argsTemplate": {},
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "resourceTypeId": "<string>"
        },
        "connectorCreateAccount": {
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>",
          "userIdCel": "<string>",
          "userProperties": {
            "displayNameCel": "<string>",
            "emailCel": "<string>",
            "profileAttributeCel": "<string>",
            "usernameCel": "<string>"
          }
        },
        "createAccessReview": {
          "accessReviewTemplateCel": "<string>",
          "accessReviewTemplateId": "<string>",
          "campaignName": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "createRevokeTasks": {
          "appEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "appEntitlementRefsCel": "<string>",
          "excludedAppEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedAppEntitlementRefsCel": "<string>",
          "revokeAll": true,
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "createRevokeTasksV2": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedResourceTypeIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionAccessOnly": {},
          "inclusionAll": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "resourceTypeIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "evaluateExpressions": {
          "expressions": [
            {
              "expressionCel": "<string>",
              "isSecret": true,
              "key": "<string>"
            }
          ]
        },
        "generatePassword": {
          "passwordPolicyId": "<string>",
          "policy": {
            "customCharacters": "<string>",
            "excludedCharacters": "<string>",
            "maxCharacterCount": 123,
            "minCharacterCount": 123,
            "noRestrictions": true,
            "requireLowercase": true,
            "requireNumbers": true,
            "requireSpecialCharacters": true,
            "requireUppercase": true
          }
        },
        "grantEntitlements": {
          "exclusionCriteria": {
            "excludedAppIds": [
              "<string>"
            ],
            "excludedComplianceFrameworkIds": [
              "<string>"
            ],
            "excludedRiskLevelIds": [
              "<string>"
            ]
          },
          "exclusionList": {
            "excludedAppEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "exclusionListCel": {
            "excludedAppEntitlementRefsCel": "<string>"
          },
          "exclusionNone": {},
          "inclusionCriteria": {
            "appIds": [
              "<string>"
            ],
            "complianceFrameworkIds": [
              "<string>"
            ],
            "riskLevelIds": [
              "<string>"
            ]
          },
          "inclusionList": {
            "appEntitlementRefs": [
              {
                "appId": "<string>",
                "id": "<string>"
              }
            ]
          },
          "inclusionListCel": {
            "appEntitlementRefsCel": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "removeFromDelegation": {
          "replacementUserIdCel": "<string>",
          "replacementUserRef": {
            "id": "<string>"
          },
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          }
        },
        "runAutomation": {
          "automationTemplateIdCel": "<string>",
          "automationTemplateRef": {
            "id": "<string>"
          },
          "context": {
            "context": {}
          }
        },
        "sendEmail": {
          "body": "<string>",
          "email": "<string>",
          "emailCel": "<string>",
          "subject": "<string>",
          "title": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "sendSlackMessage": {
          "body": "<string>",
          "channelName": "<string>",
          "channelNameCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "setCredential": {
          "accountIdCel": "<string>",
          "connectorRef": {
            "appId": "<string>",
            "id": "<string>"
          },
          "passwordCel": "<string>"
        },
        "skipIfTrueCel": "<string>",
        "stepDisplayName": "<string>",
        "stepName": "<string>",
        "storeCredential": {
          "appIdCel": "<string>",
          "credentialCel": "<string>",
          "expiry": "<string>",
          "labelCel": "<string>",
          "maxViews": 123,
          "recipientCel": "<string>",
          "recipientEmailCel": "<string>",
          "ttl": "<string>"
        },
        "taskAction": {
          "close": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "reassign": {
            "assigneeUserIdCel": "<string>",
            "assigneeUserRef": {
              "id": "<string>"
            },
            "subjectUserIdCel": "<string>",
            "subjectUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true
          },
          "taskTypes": []
        },
        "unenrollFromAllAccessProfiles": {
          "catalogIds": [
            "<string>"
          ],
          "catalogIdsCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "updateUser": {
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          },
          "userStatusCel": "<string>"
        },
        "waitForDuration": {
          "duration": "<string>"
        },
        "webhook": {
          "payload": {},
          "webhookId": "<string>",
          "webhookIdCel": "<string>"
        }
      }
    ],
    "draftTriggers": [
      {
        "accessConflict": {
          "allConflictMonitors": true,
          "conflictMonitorRefs": {
            "conflictMonitorRefs": [
              {
                "id": "<string>"
              }
            ]
          }
        },
        "appUserCreated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "appUserUpdated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "grantDeleted": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "grantFound": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "schedule": {
          "advanced": true,
          "condition": "<string>",
          "cronSpec": "<string>",
          "skipIfTrueCel": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleAppUser": {
          "appId": "<string>",
          "condition": "<string>",
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleNoUser": {
          "advanced": true,
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "usageBasedRevocation": {
          "appId": "<string>",
          "enabledAt": "2023-11-07T05:31:56Z",
          "excludedGroupRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedUserRefs": [
            {
              "id": "<string>"
            }
          ],
          "includeUsersWithNoActivity": true,
          "runDelayed": {
            "coldStartDelayDays": 123
          },
          "runImmediately": {},
          "targetedAppUserTypes": [],
          "targetedEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "unusedForDays": 123
        },
        "userCreated": {
          "condition": "<string>"
        },
        "userProfileChange": {
          "condition": "<string>"
        },
        "webhook": {
          "capabilityUrl": {},
          "hmac": {},
          "jwt": {
            "jwksUrl": "<string>"
          },
          "listenerId": "<string>"
        }
      }
    ],
    "enabled": true,
    "id": "<string>",
    "isDraft": true,
    "lastExecutedAt": "2023-11-07T05:31:56Z",
    "triggers": [
      {
        "accessConflict": {
          "allConflictMonitors": true,
          "conflictMonitorRefs": {
            "conflictMonitorRefs": [
              {
                "id": "<string>"
              }
            ]
          }
        },
        "appUserCreated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "appUserUpdated": {
          "appId": "<string>",
          "appIdCel": "<string>",
          "condition": "<string>"
        },
        "grantDeleted": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "grantFound": {
          "grantTriggerFilter": {
            "accountFilter": {},
            "grantFilter": {},
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "schedule": {
          "advanced": true,
          "condition": "<string>",
          "cronSpec": "<string>",
          "skipIfTrueCel": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleAppUser": {
          "appId": "<string>",
          "condition": "<string>",
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "scheduleNoUser": {
          "advanced": true,
          "cronSpec": "<string>",
          "start": "2023-11-07T05:31:56Z",
          "timezone": "<string>"
        },
        "usageBasedRevocation": {
          "appId": "<string>",
          "enabledAt": "2023-11-07T05:31:56Z",
          "excludedGroupRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "excludedUserRefs": [
            {
              "id": "<string>"
            }
          ],
          "includeUsersWithNoActivity": true,
          "runDelayed": {
            "coldStartDelayDays": 123
          },
          "runImmediately": {},
          "targetedAppUserTypes": [],
          "targetedEntitlementRefs": [
            {
              "appId": "<string>",
              "id": "<string>"
            }
          ],
          "unusedForDays": 123
        },
        "userCreated": {
          "condition": "<string>"
        },
        "userProfileChange": {
          "condition": "<string>"
        },
        "webhook": {
          "capabilityUrl": {},
          "hmac": {},
          "jwt": {
            "jwksUrl": "<string>"
          },
          "listenerId": "<string>"
        }
      }
    ]
  },
  "webhookCapabilityUrl": "<string>",
  "webhookHmacSecret": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

id
string
required
read-only

The id field.

Body

application/json

The UpdateAutomationRequest message.

automation
Automation · object | null

The Automation message.

This message contains a oneof named disabled_reason. Only a single field of the following list may be set at a time:

  • circuitBreaker
updateMask
string | null

Response

200 - application/json

Successful response

The UpdateAutomationResponse message.

automation
Automation · object | null

The Automation message.

This message contains a oneof named disabled_reason. Only a single field of the following list may be set at a time:

  • circuitBreaker
webhookCapabilityUrl
string | null

One-time absolute webhook URL for capability URL authentication, shown once when the trigger is saved. Contains the full URL including the embedded token (e.g. https://tenant.conductorone.com/api/v1/webhooks/incoming/{id}/t/{token}). Populated only when the webhook trigger uses capability URL authentication.

webhookHmacSecret
string | null

One-time HMAC shared secret, shown once when the trigger is saved. Populated only when the webhook trigger uses HMAC authentication.