✅Tasks
Create/Update/Get/Delete tasks within your tenant and account.
Create task
POST
https://app.ninjapipe.com/api/v1/tasks/create
Creates a new task in your tenant.
Make sure to add API_KEY as a header. This is your API Key found in the API & Integrations page.
API_KEY
{"taskName":"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}
Successful response
POST /api/v1/tasks/create HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 226
{
"taskName": "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
}
Successful response
No content
Update a task
PUT
https://app.ninjapipe.com/api/v1/tasks/{task_id}/update
API_KEY
{"taskName":"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}
Successful response
PUT /api/v1/tasks/749/update HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 227
{
"taskName": "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
}
Successful response
No content
Get task
GET
https://app.ninjapipe.com/api/v1/tasks/getTaskById?id={task_id}
749
API_KEY
Successful response
GET /api/v1/tasks/getTaskById HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Accept: */*
Successful response
No content
Get all tasks
GET
https://app.ninjapipe.com/api/v1/tasks/getall
Parameters:
getall?page=1
- Use this to paginate
1
API_KEY
Successful response
GET /api/v1/tasks/getall HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Accept: */*
Successful response
No content
Mark task as complete
GET
https://app.ninjapipe.com/api/v1/tasks/{task_id}/saveCheckStatus
API_KEY
{"isCompleted":true}
Successful response
PUT /api/v1/tasks/749/saveCheckStatus HTTP/1.1
Host: app.ninjapipe.com
Authorization: noauth YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"isCompleted": true
}
Successful response
No content
Last updated