flow.json•8.86 kB
{
"nodeType": "n8n-nodes-base.flow",
"displayName": "Flow",
"description": "Consume Flow API",
"version": 1,
"properties": [
{
"name": "workspaceId",
"displayName": "Workspace ID",
"type": "string",
"default": "",
"description": "Create resources under the given workspace",
"required": true,
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"create"
]
}
}
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The title of the task",
"required": true,
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"create"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "The ID of the account to whom this task will be assigned",
"placeholder": "Add Field",
"options": [
{
"name": "ownerid",
"displayName": "Owner ID",
"type": "string",
"default": "",
"description": "The ID of the account to whom this task will be assigned"
},
{
"name": "listID",
"displayName": "List ID",
"type": "string",
"default": "",
"description": "Put the new task in a list (\"project\"). Omit this param to have the task be private."
},
{
"name": "startsOn",
"displayName": "Starts On",
"type": "dateTime",
"default": "",
"description": "The date on which the task should start"
},
{
"name": "dueOn",
"displayName": "Due On",
"type": "dateTime",
"default": "",
"description": "The date on which the task should be due"
},
{
"name": "mirrorParentSubscribers",
"displayName": "Mirror Parent Subscribers",
"type": "boolean",
"default": false,
"description": "Whether this task will be a subtask, and this is true, the parent tasks's subscribers will be mirrored to this one"
},
{
"name": "mirrorParentTags",
"displayName": "Mirror Parent Tags",
"type": "boolean",
"default": false,
"description": "Whether this task will be a subtask, and this is true, the parent tasks's tags will be mirrored to this one"
},
{
"name": "noteContent",
"displayName": "Note Content",
"type": "string",
"default": "",
"description": "Provide the content for the task's note"
}
],
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"create"
]
}
}
},
{
"name": "taskId",
"displayName": "Task ID",
"type": "string",
"default": "",
"required": true,
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"update"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "The title of the task",
"placeholder": "Add Update Field",
"options": [
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The title of the task"
},
{
"name": "completed",
"displayName": "Completed",
"type": "boolean",
"default": false,
"description": "Whether to complete the task"
},
{
"name": "ownerid",
"displayName": "Owner ID",
"type": "string",
"default": "",
"description": "The ID of the account to whom this task will be assigned"
},
{
"name": "listID",
"displayName": "List ID",
"type": "string",
"default": "",
"description": "Put the new task in a list (\"project\"). Omit this param to have the task be private."
},
{
"name": "startsOn",
"displayName": "Starts On",
"type": "dateTime",
"default": "",
"description": "The date on which the task should start"
},
{
"name": "dueOn",
"displayName": "Due On",
"type": "dateTime",
"default": "",
"description": "The date on which the task should be due"
},
{
"name": "mirrorParentSubscribers",
"displayName": "Mirror Parent Subscribers",
"type": "boolean",
"default": false,
"description": "Whether this task will be a subtask, and this is true, the parent tasks's subscribers will be mirrored to this one"
},
{
"name": "mirrorParentTags",
"displayName": "Mirror Parent Tags",
"type": "boolean",
"default": false,
"description": "Whether this task will be a subtask, and this is true, the parent tasks's tags will be mirrored to this one"
},
{
"name": "noteContent",
"displayName": "Note Content",
"type": "string",
"default": "",
"description": "Provide the content for the task's note"
}
],
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"update"
]
}
}
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"placeholder": "Add Filter",
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"get"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 50,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 100
},
"displayOptions": {
"show": {
"resource": [
"task"
],
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create a new task",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create a new task"
},
{
"name": "Update",
"value": "update",
"description": "Update a task"
},
{
"name": "Get",
"value": "get",
"description": "Get a task"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many tasks"
}
],
"displayOptions": {
"show": {
"resource": [
"task"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "task",
"description": "Tasks are units of work that can be private or assigned to a list. Through this endpoint, you can manipulate your tasks in Flow, including creating new ones.",
"options": [
{
"name": "Task",
"value": "task",
"description": "Tasks are units of work that can be private or assigned to a list. Through this endpoint, you can manipulate your tasks in Flow, including creating new ones."
}
]
}
],
"credentialsConfig": [
{
"name": "flowApi",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [],
"outputs": [],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [],
"produces": []
}
}