Workflows - Actions
Delete an action
Remove an action step from the flow’s draft version. Changes don’t affect the running flow until published.
DELETE
Delete an action
Autorizaciones
Respuesta
Successful Response
Flow response.
Delete an action
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Remove an action step from the flow’s draft version. Changes don’t affect the running flow until published.
import requests
url = "https://api.diga.io/v1/workflow/{flow_id}/action/{action_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/workflow/{flow_id}/action/{action_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.diga.io/v1/workflow/{flow_id}/action/{action_name} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/workflow/{flow_id}/action/{action_name}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "ENABLED",
"flow_category": "post_call",
"trigger": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {}
},
"nextAction": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"skip": true,
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"actionName": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {},
"branches": [
{}
],
"executionType": "<string>",
"sourceCode": {}
},
"children": [
"<unknown>"
],
"nextAction": null
}
},
"produced_variables": [
"<string>"
],
"consumed_variables": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Successful Response
Flow response.
import requests
url = "https://api.diga.io/v1/workflow/{flow_id}/action/{action_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.diga.io/v1/workflow/{flow_id}/action/{action_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://api.diga.io/v1/workflow/{flow_id}/action/{action_name} \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.diga.io/v1/workflow/{flow_id}/action/{action_name}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z",
"name": "<string>",
"status": "ENABLED",
"flow_category": "post_call",
"trigger": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {}
},
"nextAction": {
"name": "<string>",
"type": "<string>",
"valid": true,
"displayName": "<string>",
"skip": true,
"settings": {
"pieceName": "<string>",
"pieceVersion": "<string>",
"actionName": "<string>",
"triggerName": "<string>",
"input": {},
"propertySettings": {},
"sampleData": {},
"branches": [
{}
],
"executionType": "<string>",
"sourceCode": {}
},
"children": [
"<unknown>"
],
"nextAction": null
}
},
"produced_variables": [
"<string>"
],
"consumed_variables": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}