Follow

Add a Task

To create a task, you:

  • POST to the /tasks resource of the workspace
  • With a parameter named “task” whose value is a hash of task attributes
  • With task attributes including at least “name” and “parent_id”

Supposing we want to add a task “learn the API” within a project “Project A” (project_id = 146269):

% curl https://app.liquidplanner.com/api/workspaces/:id/tasks \
-d '{"task": {"name": "learn the API", "parent_id": 146269}}'

{
"name": "learn the API",
"id": 79104,
"project_id": 146269
...
}
Status: 201

If you get an error here, double-check that you’ve set the Content-Type of your request to “application/json” using your curl configuration file.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request