Create
Create Automation
post/api/v1/apps/{app_id}/entitlements/{app_entitlement_id}/automation/create
Invokes the c1.api.app.v1.AppEntitlements.CreateAutomation method.
Path Parameters
app_idstring
The appId field.
app_entitlement_idstring
The appEntitlementId field.
Body Parameters
automationappEntitlementIdstringappIdstringbasicC1APIAppV1AppEntitlementAutomationRuleBasiccelC1APIAppV1AppEntitlementAutomationRuleCelcreatedAtstringdeletedAtstringdescriptionstringdisplayNamestringentitlementsC1APIAppV1AppEntitlementAutomationRuleEntitlementlastRunStatusobjectnoneunknownupdatedAtstringC1APIAppV1AppEntitlementAutomation
optional
The AppEntitlementAutomation message.
This message contains a oneof named conditions. Only a single field of the following list may be set at a time:
- none
- entitlements
- cel
- basic
Returns
automationappEntitlementIdstringappIdstringbasicC1APIAppV1AppEntitlementAutomationRuleBasiccelC1APIAppV1AppEntitlementAutomationRuleCelcreatedAtstringdeletedAtstringdescriptionstringdisplayNamestringentitlementsC1APIAppV1AppEntitlementAutomationRuleEntitlementlastRunStatusobjectnoneunknownupdatedAtstringC1APIAppV1AppEntitlementAutomation
optional
The AppEntitlementAutomation message.
This message contains a oneof named conditions. Only a single field of the following list may be set at a time:
- none
- entitlements
- cel
- basic
Request example cURL
curl https://{tenantDomain}.conductor.one/api/v1/apps/$APP_ID/entitlements/$APP_ENTITLEMENT_ID/automation/create \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $CONDUCTORONE_SDK_API_KEY"200 Example
{
"automation": {
"basic": {
"expression": "expression"
},
"cel": {
"expression": "expression"
},
"description": "description",
"displayName": "displayName",
"entitlements": {
"entitlementRefs": [
{
"id": "id",
"appId": "appId"
}
]
},
"lastRunStatus": {},
"none": {}
}
}