NinjaPipe Docs
API Documentation
API Documentation
  • 👋Welcome!
  • Quick Start
  • Reference
    • API Reference
      • 👥Contacts
      • ✅Tasks
        • ☑️Subtasks
      • 🛒Sales
        • 👤Order Customer
        • 🛍️Orders
      • Pipelines
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. Tasks

Subtasks

Create/Update/Get/Delete subtasks within main tasks.

PreviousTasksNextSales

Last updated 3 months ago

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 page.

Update a subtask

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

Get all subtasks

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

✅
☑️
API & Integrations

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

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

  • Create subtask
  • POSTCreate Sub Task
  • Update a subtask
  • PUTUpdate Subtask
  • Get all subtasks
  • GETGet Subtasks

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