☑️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.

Create Sub Task

post
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

PUThttps://app.ninjapipe.com/api/v1/tasks/{task_id}/updateSubTask

Update Subtask

put
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

GEThttps://app.ninjapipe.com/api/v1/tasks/{task_id}/getSubTasks

Get Subtasks

get
Authorizations
Header parameters
API_KEYstringOptionalExample: API_KEY
Responses
200
Successful response
application/json
get
GET /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