UpdateAutomationTrigger
curl --request PATCH \
--url https://api.siftstack.com/api/v1/automation-triggers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"automationTrigger": {
"automationTriggerId": "<string>",
"organizationId": "<string>",
"canvasId": "<string>",
"name": "<string>",
"matchFilter": {
"assetIds": [
"<string>"
]
},
"userId": "<string>",
"actionKind": "AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED",
"isEnabled": true,
"isArchived": true,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"actionParams": {},
"archivedDate": "2023-11-07T05:31:56Z"
},
"updateMask": "<string>"
}
'import requests
url = "https://api.siftstack.com/api/v1/automation-triggers"
payload = {
"automationTrigger": {
"automationTriggerId": "<string>",
"organizationId": "<string>",
"canvasId": "<string>",
"name": "<string>",
"matchFilter": { "assetIds": ["<string>"] },
"userId": "<string>",
"actionKind": "AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED",
"isEnabled": True,
"isArchived": True,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"actionParams": {},
"archivedDate": "2023-11-07T05:31:56Z"
},
"updateMask": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.siftstack.com/api/v1/automation-triggers"
payload := strings.NewReader("{\n \"automationTrigger\": {\n \"automationTriggerId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"canvasId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchFilter\": {\n \"assetIds\": [\n \"<string>\"\n ]\n },\n \"userId\": \"<string>\",\n \"actionKind\": \"AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED\",\n \"isEnabled\": true,\n \"isArchived\": true,\n \"createdDate\": \"2023-11-07T05:31:56Z\",\n \"modifiedDate\": \"2023-11-07T05:31:56Z\",\n \"createdByUserId\": \"<string>\",\n \"modifiedByUserId\": \"<string>\",\n \"actionParams\": {},\n \"archivedDate\": \"2023-11-07T05:31:56Z\"\n },\n \"updateMask\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"automationTrigger": {
"automationTriggerId": "<string>",
"organizationId": "<string>",
"canvasId": "<string>",
"name": "<string>",
"matchFilter": {
"assetIds": [
"<string>"
],
"nameMatch": {
"kind": "AUTOMATION_TRIGGER_RUN_NAME_MATCH_KIND_UNSPECIFIED",
"value": "<string>"
}
},
"userId": "<string>",
"actionKind": "AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED",
"isEnabled": true,
"isArchived": true,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"actionParams": {
"canvasEvaluation": {
"canvasVersionId": "<string>",
"paramJson": {}
}
},
"archivedDate": "2023-11-07T05:31:56Z"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}AutomationService
UpdateAutomationTrigger
Update select fields of an existing automation trigger.
PATCH
/
api
/
v1
/
automation-triggers
UpdateAutomationTrigger
curl --request PATCH \
--url https://api.siftstack.com/api/v1/automation-triggers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"automationTrigger": {
"automationTriggerId": "<string>",
"organizationId": "<string>",
"canvasId": "<string>",
"name": "<string>",
"matchFilter": {
"assetIds": [
"<string>"
]
},
"userId": "<string>",
"actionKind": "AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED",
"isEnabled": true,
"isArchived": true,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"actionParams": {},
"archivedDate": "2023-11-07T05:31:56Z"
},
"updateMask": "<string>"
}
'import requests
url = "https://api.siftstack.com/api/v1/automation-triggers"
payload = {
"automationTrigger": {
"automationTriggerId": "<string>",
"organizationId": "<string>",
"canvasId": "<string>",
"name": "<string>",
"matchFilter": { "assetIds": ["<string>"] },
"userId": "<string>",
"actionKind": "AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED",
"isEnabled": True,
"isArchived": True,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"actionParams": {},
"archivedDate": "2023-11-07T05:31:56Z"
},
"updateMask": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.siftstack.com/api/v1/automation-triggers"
payload := strings.NewReader("{\n \"automationTrigger\": {\n \"automationTriggerId\": \"<string>\",\n \"organizationId\": \"<string>\",\n \"canvasId\": \"<string>\",\n \"name\": \"<string>\",\n \"matchFilter\": {\n \"assetIds\": [\n \"<string>\"\n ]\n },\n \"userId\": \"<string>\",\n \"actionKind\": \"AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED\",\n \"isEnabled\": true,\n \"isArchived\": true,\n \"createdDate\": \"2023-11-07T05:31:56Z\",\n \"modifiedDate\": \"2023-11-07T05:31:56Z\",\n \"createdByUserId\": \"<string>\",\n \"modifiedByUserId\": \"<string>\",\n \"actionParams\": {},\n \"archivedDate\": \"2023-11-07T05:31:56Z\"\n },\n \"updateMask\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"automationTrigger": {
"automationTriggerId": "<string>",
"organizationId": "<string>",
"canvasId": "<string>",
"name": "<string>",
"matchFilter": {
"assetIds": [
"<string>"
],
"nameMatch": {
"kind": "AUTOMATION_TRIGGER_RUN_NAME_MATCH_KIND_UNSPECIFIED",
"value": "<string>"
}
},
"userId": "<string>",
"actionKind": "AUTOMATION_TRIGGER_ACTION_KIND_UNSPECIFIED",
"isEnabled": true,
"isArchived": true,
"createdDate": "2023-11-07T05:31:56Z",
"modifiedDate": "2023-11-07T05:31:56Z",
"createdByUserId": "<string>",
"modifiedByUserId": "<string>",
"actionParams": {
"canvasEvaluation": {
"canvasVersionId": "<string>",
"paramJson": {}
}
},
"archivedDate": "2023-11-07T05:31:56Z"
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The request for a call to AutomationService_UpdateAutomationTrigger.
The trigger's automation_trigger_id is used to identify the row; every
other field is applied only when named in update_mask.
Response
A successful response.
The response of a call to AutomationService_UpdateAutomationTrigger.
To archive a trigger, include archived_date in the mask and set the
field. To unarchive, include archived_date in the mask and clear it.
Show child attributes
Show child attributes
Was this page helpful?
⌘I