← Ticktick

Update a Task with Ticktick API

Pipedream makes it easy to connect APIs for Ticktick and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Update a Task with the Ticktick API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Update a Task with the Ticktick API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Update a Task action
    1. Connect your Ticktick account
    2. Select a Project ID
    3. Select a Task ID
    4. Configure Title
    5. Optional- Configure Content
    6. Optional- Configure All day
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Update a Task with Ticktick API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Ticktick
 
Try it
Update a Task with Ticktick API on New Message from Discord API
Discord + Ticktick
 
Try it
Update a Task with Ticktick API on New Message In Channels from Slack API
Slack + Ticktick
 
Try it
Update a Task with Ticktick API on New Message in Channel from Discord Bot API
Discord Bot + Ticktick
 
Try it
Update a Task with Ticktick API on New Submission from Typeform API
Typeform + Ticktick
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Update a Task on Ticktick
Description:Update a Task. [See doc](https://developer.ticktick.com/api#/openapi?id=update-a-task)
Version:0.0.2
Key:ticktick-update-task

Code

import ticktick from "../../ticktick.app.mjs";
import { removeNullEntries } from "../../common/utils.mjs";

export default {
  key: "ticktick-update-task",
  name: "Update a Task",
  description: "Update a Task. [See doc](https://developer.ticktick.com/api#/openapi?id=update-a-task)",
  version: "0.0.2",
  type: "action",
  props: {
    ticktick,
    projectId: {
      propDefinition: [
        ticktick,
        "projectId",
      ],
    },
    taskId: {
      propDefinition: [
        ticktick,
        "taskId",
        (c) => ({
          projectId: c.projectId,
        }),
      ],
      description: "ID of task to update",
    },
    title: {
      type: "string",
      label: "Title",
      description: "Task title",
    },
    content: {
      type: "string",
      label: "Content",
      description: "Task content",
      optional: true,
    },
    allDay: {
      type: "boolean",
      label: "All day",
      description: "All day",
      reloadProps: true,
      optional: true,
    },
  },
  async additionalProps() {
    const props = {};
    if (!this.allDay) {
      props.startDate = {
        type: "string",
        label: "Start date",
        description: "Start date and time in \"yyyy-MM-dd'T'HH:mm:ssZ\" format. Example : \"2019-11-13T03:00:00+0000\"",
        optional: true,
      };
      props.dueDate = {
        type: "string",
        label: "Due date",
        description: "Due date and time in \"yyyy-MM-dd'T'HH:mm:ssZ\" format. Example : \"2019-11-13T03:00:00+0000\"",
        optional: true,
      };
    }
    return props;
  },
  async run({ $ }) {
    const data = removeNullEntries({
      title: this.title,
      content: this.content,
      startDate: this.startDate,
      dueDate: this.dueDate,
      allDay: this.allDay,
    });
    if (this.projectId && this.projectId !== "inbox") {
      data.projectId = this.projectId;
    }
    const response = await this.ticktick.updateTask({
      $,
      data,
    }, this.taskId);
    response && $.export("$summary", "Successfully updated task");
    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
TicktickticktickappThis component uses the Ticktick app.
Project IDprojectIdstringSelect a value from the drop down menu.
Task IDtaskIdstringSelect a value from the drop down menu.
Titletitlestring

Task title

Contentcontentstring

Task content

All dayallDayboolean

All day

Authentication

Ticktick uses OAuth authentication. When you connect your Ticktick account, Pipedream will open a popup window where you can sign into Ticktick and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Ticktick API.

Pipedream requests the following authorization scopes when you connect your account:

tasks:write

About Ticktick

Todo list, checklist and task manager app

More Ways to Use Ticktick

Actions

Complete a Task with the Ticktick API

Complete a Task. See doc

 
Try it
Create a Task with the Ticktick API

Create a Task.See doc

 
Try it
List Projects with the Ticktick API

List all projects in a TickTick account

 
Try it