βœ…Tasks

Create/Update/Get/Delete tasks within your tenant and account.

After creating a task, you can also assign subtasks inside of it via the Subtasks API.

Create task

POST https://app.ninjapipe.com/api/v1/tasks/create

Creates a new task in your tenant.

Create Task

post
Authorizations
HTTPRequired
Header parameters
API_KEYstringOptionalExample: API_KEY
Body
objectOptionalExample: {"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}
Responses
post
/api/v1/tasks/create
200

Successful response

No content

Update a task

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

Update Task

put
Authorizations
HTTPRequired
Header parameters
API_KEYstringOptionalExample: API_KEY
Body
objectOptionalExample: {"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}
Responses
put
/api/v1/tasks/749/update
200

Successful response

No content

Get task

GEThttps://app.ninjapipe.com/api/v1/tasks/getTaskById?id={task_id}

Get Task

get
Authorizations
HTTPRequired
Query parameters
idintegerOptionalExample: 749
Header parameters
API_KEYstringOptionalExample: API_KEY
Responses
get
/api/v1/tasks/getTaskById
200

Successful response

No content

Get all tasks

GEThttps://app.ninjapipe.com/api/v1/tasks/getall

Parameters:

  • getall?page=1 - Use this to paginate

Get Tasks

get
Authorizations
HTTPRequired
Query parameters
pageintegerOptionalExample: 1
Header parameters
API_KEYstringOptionalExample: API_KEY
Responses
get
/api/v1/tasks/getall
200

Successful response

No content

Mark task as complete

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

Mark Task Complete

put
Authorizations
HTTPRequired
Header parameters
API_KEYstringOptionalExample: API_KEY
Body
objectOptionalExample: {"isCompleted":true}
Responses
put
/api/v1/tasks/749/saveCheckStatus
200

Successful response

No content

Last updated