☑️Subtasks
Create/Update/Get/Delete subtasks within main tasks.
Create subtask
POST https://app.ninjapipe.com/api/v1/tasks/createSubTask
Creates a new subtask within your task.
Make sure to add API_KEY as a header. This is your API Key found in the API & Integrations page.
Authorizations
Header parameters
API_KEYstringOptionalExample: 
API_KEYBody
objectOptionalExample: 
{"task_id":742,"item_name":"Call Alex Johnson","startDate":"2023-05-01T00:00:00","endDate":"2023-05-05T00:00:00","local_date":"2023-05-01T00:00:00","taskItem_assignee":[],"isCompleted":false}Responses
200
Successful response
application/json
post
/api/v1/tasks/createSubTaskPOST /api/v1/tasks/createSubTask HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 191
{
  "task_id": 742,
  "item_name": "Call Alex Johnson",
  "startDate": "2023-05-01T00:00:00",
  "endDate": "2023-05-05T00:00:00",
  "local_date": "2023-05-01T00:00:00",
  "taskItem_assignee": [],
  "isCompleted": false
}200
Successful response
No content
Update a subtask
PUThttps://app.ninjapipe.com/api/v1/tasks/{task_id}/updateSubTask
Authorizations
Header parameters
API_KEYstringOptionalExample: 
API_KEYBody
objectOptionalExample: 
{"item_name":"Website Redesign!","description":"Redesign the company homepage to improve user experience.","startDate":"2023-06-15T09:00:00","endDate":"2023-07-15T17:00:00","local_date":"2023-06-15T09:00:00","isCompleted":false}Responses
200
Successful response
application/json
put
/api/v1/tasks/749/updateSubTaskPUT /api/v1/tasks/749/updateSubTask HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 228
{
  "item_name": "Website Redesign!",
  "description": "Redesign the company homepage to improve user experience.",
  "startDate": "2023-06-15T09:00:00",
  "endDate": "2023-07-15T17:00:00",
  "local_date": "2023-06-15T09:00:00",
  "isCompleted": false
}200
Successful response
No content
Get all subtasks
GEThttps://app.ninjapipe.com/api/v1/tasks/{task_id}/getSubTasks
Authorizations
Header parameters
API_KEYstringOptionalExample: 
API_KEYResponses
200
Successful response
application/json
get
/api/v1/tasks/742/getSubTasksGET /api/v1/tasks/742/getSubTasks HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Accept: */*
200
Successful response
No content
Last updated