Skip to main content
POST
/
api
/
v1
/
automations
CreateAutomation
package main

import(
	"context"
	"github.com/conductorone/conductorone-sdk-go/pkg/models/shared"
	conductoronesdkgo "github.com/conductorone/conductorone-sdk-go"
	"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.CreateAutomation(ctx, nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.AutomationsCreateAutomationResponse != nil {
        // handle response
    }
}
{
  "automation": {
    "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": {},
          "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>",
          "authType": "STORE_CREDENTIAL_AUTH_TYPE_UNSPECIFIED",
          "credentialCel": "<string>",
          "expiry": "<string>",
          "labelCel": "<string>",
          "maxViews": 123,
          "recipientCel": "<string>",
          "recipientEmailCel": "<string>",
          "ttl": "<string>",
          "vaultType": "STORE_CREDENTIAL_VAULT_TYPE_UNSPECIFIED"
        },
        "taskAction": {
          "close": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "reassign": {
            "assigneeUserIdCel": "<string>",
            "assigneeUserRef": {
              "id": "<string>"
            },
            "subjectUserIdCel": "<string>",
            "subjectUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true
          },
          "taskTypes": [
            "TASK_TYPE_UNSPECIFIED"
          ],
          "taskUserRelation": "TASK_USER_RELATION_UNSPECIFIED"
        },
        "unenrollFromAllAccessProfiles": {
          "catalogIds": [
            "<string>"
          ],
          "catalogIdsCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "updateUser": {
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          },
          "userStatusCel": "<string>",
          "userStatusEnum": "UNKNOWN"
        },
        "waitForDuration": {
          "duration": "<string>"
        },
        "webhook": {
          "payload": {},
          "webhookId": "<string>",
          "webhookIdCel": "<string>"
        }
      }
    ],
    "circuitBreaker": {
      "observedCount": 123,
      "period": "CIRCUIT_BREAKER_PERIOD_UNSPECIFIED",
      "threshold": 123,
      "trippedAt": "2023-11-07T05:31:56Z"
    },
    "circuitBreakerMax": 123,
    "circuitBreakerPeriod": "CIRCUIT_BREAKER_PERIOD_UNSPECIFIED",
    "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": {},
          "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>",
          "authType": "STORE_CREDENTIAL_AUTH_TYPE_UNSPECIFIED",
          "credentialCel": "<string>",
          "expiry": "<string>",
          "labelCel": "<string>",
          "maxViews": 123,
          "recipientCel": "<string>",
          "recipientEmailCel": "<string>",
          "ttl": "<string>",
          "vaultType": "STORE_CREDENTIAL_VAULT_TYPE_UNSPECIFIED"
        },
        "taskAction": {
          "close": {
            "useSubjectUser": true,
            "userIdCel": "<string>",
            "userRef": {
              "id": "<string>"
            }
          },
          "reassign": {
            "assigneeUserIdCel": "<string>",
            "assigneeUserRef": {
              "id": "<string>"
            },
            "subjectUserIdCel": "<string>",
            "subjectUserRef": {
              "id": "<string>"
            },
            "useSubjectUser": true
          },
          "taskTypes": [
            "TASK_TYPE_UNSPECIFIED"
          ],
          "taskUserRelation": "TASK_USER_RELATION_UNSPECIFIED"
        },
        "unenrollFromAllAccessProfiles": {
          "catalogIds": [
            "<string>"
          ],
          "catalogIdsCel": "<string>",
          "useSubjectUser": true,
          "userIdsCel": "<string>",
          "userRefs": [
            {
              "id": "<string>"
            }
          ]
        },
        "updateUser": {
          "useSubjectUser": true,
          "userIdCel": "<string>",
          "userRef": {
            "id": "<string>"
          },
          "userStatusCel": "<string>",
          "userStatusEnum": "UNKNOWN"
        },
        "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": {
              "accountType": "APP_USER_TYPE_UNSPECIFIED"
            },
            "grantFilter": {
              "grantFilterType": "GRANT_FILTER_TYPE_UNSPECIFIED",
              "grantJustificationType": "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED",
              "grantSourceFilter": "GRANT_SOURCE_FILTER_UNSPECIFIED"
            },
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "grantFound": {
          "grantTriggerFilter": {
            "accountFilter": {
              "accountType": "APP_USER_TYPE_UNSPECIFIED"
            },
            "grantFilter": {
              "grantFilterType": "GRANT_FILTER_TYPE_UNSPECIFIED",
              "grantJustificationType": "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED",
              "grantSourceFilter": "GRANT_SOURCE_FILTER_UNSPECIFIED"
            },
            "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": [
            "APP_USER_TYPE_UNSPECIFIED"
          ],
          "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",
    "primaryTriggerType": "TRIGGER_TYPE_UNSPECIFIED",
    "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": {
              "accountType": "APP_USER_TYPE_UNSPECIFIED"
            },
            "grantFilter": {
              "grantFilterType": "GRANT_FILTER_TYPE_UNSPECIFIED",
              "grantJustificationType": "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED",
              "grantSourceFilter": "GRANT_SOURCE_FILTER_UNSPECIFIED"
            },
            "inclusionAll": {},
            "inclusionCriteria": {
              "appIds": [
                "<string>"
              ],
              "complianceFrameworkIds": [
                "<string>"
              ],
              "resourceTypeIds": [
                "<string>"
              ],
              "riskLevelIds": [
                "<string>"
              ]
            },
            "inclusionList": {
              "appEntitlementRefs": [
                {
                  "appId": "<string>",
                  "id": "<string>"
                }
              ]
            },
            "inclusionListCel": {
              "appEntitlementRefsCel": "<string>"
            }
          }
        },
        "grantFound": {
          "grantTriggerFilter": {
            "accountFilter": {
              "accountType": "APP_USER_TYPE_UNSPECIFIED"
            },
            "grantFilter": {
              "grantFilterType": "GRANT_FILTER_TYPE_UNSPECIFIED",
              "grantJustificationType": "GRANT_JUSTIFICATION_TYPE_UNSPECIFIED",
              "grantSourceFilter": "GRANT_SOURCE_FILTER_UNSPECIFIED"
            },
            "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": [
            "APP_USER_TYPE_UNSPECIFIED"
          ],
          "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>"
}

Documentation Index

Fetch the complete documentation index at: https://conductorone-groman-network-requirements-updates.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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.

Body

application/json

The CreateAutomationRequest message.

appId
string

the app id this workflow_template belongs to

automationSteps
Automation Step · object[] | null

Ordered list of steps that the automation executes.

circuitBreakerMax
integer<uint32>

Circuit breaker rate cap. See Automation.circuit_breaker_max for semantics.

circuitBreakerPeriod
enum<string>

The circuitBreakerPeriod field.

Available options:
CIRCUIT_BREAKER_PERIOD_UNSPECIFIED,
CIRCUIT_BREAKER_PERIOD_HOUR,
CIRCUIT_BREAKER_PERIOD_DAY,
CIRCUIT_BREAKER_PERIOD_WEEK,
CIRCUIT_BREAKER_PERIOD_MONTH
context
Automation Context · object

The AutomationContext message.

description
string

Optional description explaining the automation's purpose.

displayName
string

Human-readable name for the automation.

draftAutomationSteps
Automation Step · object[] | null

Steps saved as a draft that have not yet been published.

draftTriggers
Automation Trigger · object[] | null

Triggers saved as a draft that have not yet been published.

enabled
boolean

Whether the automation is active and eligible for execution.

isDraft
boolean

Whether this automation is in draft mode. Draft automations are not eligible for trigger-based execution.

triggers
Automation Trigger · object[] | null

Triggers that determine when the automation runs.

Response

200 - application/json

Successful response

The CreateAutomationResponse message.

automation
Automation · object

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

One-time absolute webhook URL for capability URL authentication, shown once at creation time. 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

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