☑️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_KEY
Body
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
POST /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
PUT
https://app.ninjapipe.com/api/v1/tasks/{task_id}/updateSubTask
Authorizations
Header parameters
API_KEYstringOptionalExample:
API_KEY
Body
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
PUT /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
GET
https://app.ninjapipe.com/api/v1/tasks/{task_id}/getSubTasks
Last updated