/** * ClickUp Node - Version 1 * Discriminator: resource=task, operation=create */ interface Credentials { clickUpApi: CredentialReference; clickUpOAuth2Api: CredentialReference; } /** Create a checklist */ export type ClickUpV1TaskCreateParams = { resource: 'task'; operation: 'create'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ team?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ space?: string | Expression; /** * Folderless List * @default false */ folderless?: boolean | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { folderless: [false] } */ folder?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { folderless: [true] } */ list?: string | Expression; /** * The first name on the task */ name?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ additionalFields?: { /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ assignees?: string[]; /** Custom fields to set as JSON in the format: <code>[ {"id": "", "value": ""} ]</code> */ customFieldsJson?: IDataObject | string | Expression; /** Content */ content?: string | Expression | PlaceholderValue; /** Due Date */ dueDate?: string | Expression; /** Due Date Time * @default false */ dueDateTime?: boolean | Expression; /** Is Markdown Content * @default false */ markdownContent?: boolean | Expression; /** Notify All * @default false */ notifyAll?: boolean | Expression; /** Parent ID */ parentId?: string | Expression | PlaceholderValue; /** Integer mapping as 1 : Urgent, 2 : High, 3 : Normal, 4 : Low * @default 3 */ priority?: number | Expression; /** Start Date */ startDate?: string | Expression; /** Start Date Time * @default false */ startDateTime?: boolean | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ status?: string | Expression; /** The array of tags applied to this task. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ tags?: string[]; /** Time estimate in minutes * @default 1 */ timeEstimate?: number | Expression; }; }; export type ClickUpV1TaskCreateOutput = { archived?: boolean; assignees?: Array<{ email?: string; id?: number; initials?: string; username?: string; }>; creator?: { email?: string; id?: number; username?: string; }; custom_fields?: Array<{ date_created?: string; hide_from_guests?: boolean; id?: string; name?: string; type?: string; type_config?: { new_drop_down?: boolean; options?: Array<{ id?: string; name?: string; orderindex?: number; }>; sorting?: string; }; }>; custom_id?: null; custom_item_id?: number; date_created?: string; date_updated?: string; description?: string; folder?: { access?: boolean; hidden?: boolean; id?: string; name?: string; }; id?: string; list?: { access?: boolean; id?: string; name?: string; }; name?: string; orderindex?: string; permission_level?: string; points?: null; project?: { access?: boolean; hidden?: boolean; id?: string; name?: string; }; sharing?: { public?: boolean; public_fields?: Array; public_share_expires_on?: null; seo_optimized?: boolean; token?: null; }; space?: { id?: string; }; status?: { color?: string; id?: string; orderindex?: number; status?: string; type?: string; }; tags?: Array<{ creator?: number; name?: string; tag_bg?: string; tag_fg?: string; }>; team_id?: string; text_content?: string; time_spent?: number; url?: string; watchers?: Array<{ email?: string; id?: number; initials?: string; username?: string; }>; }; export type ClickUpV1TaskCreateNode = { type: 'n8n-nodes-base.clickUp'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };