"A valid JSON object with required fields: 'name', 'nodes', 'connections' and 'settings'. More information can be found in the <a href=\"https://docs.n8n.io/api/api-reference/#tag/Workflow/paths/~1workflows/post\">documentation</a>.",
},
];
constdeactivateOperation: INodeProperties[]=[
{
...workflowIdLocator,
required: true,
displayOptions:{
show:{
resource:['workflow'],
operation:['deactivate'],
},
},
routing:{
request:{
method:'POST',
url:'=/workflows/{{ $value }}/deactivate',
},
},
},
];
constdeleteOperation: INodeProperties[]=[
{
...workflowIdLocator,
required: true,
displayOptions:{
show:{
resource:['workflow'],
operation:['delete'],
},
},
routing:{
request:{
method:'DELETE',
url:'=/workflows/{{ $value }}',
},
},
},
];
constgetAllOperation: INodeProperties[]=[
{
displayName:'Return All',
name:'returnAll',
type:'boolean',
default:true,
displayOptions:{
show:{
resource:['workflow'],
operation:['getAll'],
},
},
description:'Whether to return all results or only up to a given limit',
},
{
displayName:'Limit',
name:'limit',
type:'number',
default:100,
typeOptions:{
minValue: 1,
maxValue: 250,
},
displayOptions:{
show:{
resource:['workflow'],
operation:['getAll'],
returnAll:[false],
},
},
routing:{
request:{
qs:{
limit:'={{ $value }}',
},
},
},
description:'Max number of results to return',
},
{
displayName:'Filters',
name:'filters',
type:'collection',
default:{},
displayOptions:{
show:{
resource:['workflow'],
operation:['getAll'],
},
},
options:[
{
displayName:'Return Only Active Workflows',
name:'activeWorkflows',
type:'boolean',
default:true,
routing:{
request:{
qs:{
active:'={{ $value }}',
},
},
},
},
{
displayName:'Tags',
name:'tags',
type:'string',
default:'',
routing:{
// Only include the 'tags' query parameter if it's non-empty
"A valid JSON object with required fields: 'name', 'nodes', 'connections' and 'settings'. More information can be found in the <a href=\"https://docs.n8n.io/api/api-reference/#tag/Workflow/paths/~1workflows~1%7Bid%7D/put\">documentation</a>.",