Automation
Get v1automationworkflows versions compare
GET
/
v1
/
automation
/
workflows
/
{workflowID}
/
versions
/
{versionAID}
/
compare
/
{versionBID}
cURL
curl --request GET \
--url https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions/{versionAID}/compare/{versionBID}const options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions/{versionAID}/compare/{versionBID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions/{versionAID}/compare/{versionBID}"
response = requests.get(url)
print(response.text){
"added_edges": [
"<string>"
],
"added_nodes": [
"<string>"
],
"modified_nodes": [
"<string>"
],
"removed_edges": [
"<string>"
],
"removed_nodes": [
"<string>"
],
"schema_changed": true,
"version_a": {
"edge_count": 123,
"id": "<string>",
"node_count": 123,
"schema_version": "<string>",
"trigger_type": "<string>",
"version_number": 123,
"published_at": "<string>"
},
"version_b": {
"edge_count": 123,
"id": "<string>",
"node_count": 123,
"schema_version": "<string>",
"trigger_type": "<string>",
"version_number": 123,
"published_at": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
cURL
curl --request GET \
--url https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions/{versionAID}/compare/{versionBID}const options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions/{versionAID}/compare/{versionBID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/automation/workflows/{workflowID}/versions/{versionAID}/compare/{versionBID}"
response = requests.get(url)
print(response.text){
"added_edges": [
"<string>"
],
"added_nodes": [
"<string>"
],
"modified_nodes": [
"<string>"
],
"removed_edges": [
"<string>"
],
"removed_nodes": [
"<string>"
],
"schema_changed": true,
"version_a": {
"edge_count": 123,
"id": "<string>",
"node_count": 123,
"schema_version": "<string>",
"trigger_type": "<string>",
"version_number": 123,
"published_at": "<string>"
},
"version_b": {
"edge_count": 123,
"id": "<string>",
"node_count": 123,
"schema_version": "<string>",
"trigger_type": "<string>",
"version_number": 123,
"published_at": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}