Tasks



Base URL

https://api.rentila.com/landlord/tasks


Endpoints

1. Get Tasks

Endpoint:
GET https://api.rentila.com/landlord/tasks
Description: Retrieves a list of tasks assigned to the landlord.
Query Parameters:
Parameter
Type
Required
Description
active
boolean
No
If set to 1, fetches active tasks. If set to 0, fetches inactive tasks.
filter
object
No
Filters tasks based on various criteria such as BuildingID, PropertyID, TenantID, or UserID.
sort_by
string
No
Field to sort by. Allowed values: TaskID, TaskSubject, TaskActive. Default is TaskID.
sort_order
string
No
Sorting order, either ASC or DESC. Default is DESC.
page
integer
No
Page number for pagination. Default is 1.
show_per_page
integer
No
Number of tasks per page. Defaults to system pagination settings.
Response:
{
"code": 200,
"status": "success",
"data": {
"tasks": [
{
"TaskID": 12345,
"TaskSubject": "Repair Leak",
"TaskActive": 1
},
{
"TaskID": 67890,
"TaskSubject": "Fix Heating",
"TaskActive": 0
}
],
"pagination": {
"current_page": 1,
"per_page": 10,
"total_pages": 3,
"total_records": 25
}
},
"message": "OK"
}


2. Load Task

Endpoint:
GET https://api.rentila.com/landlord/tasks/{id}
Description: Loads details of a specific task.
Path Parameters:
Parameter
Type
Required
Description
id
integer
Yes
The ID of the task to retrieve.
Response:
{
"code": 200,
"status": "success",
"data": {
"TaskID": 12345,
"TaskSubject": "Repair Leak",
"TaskActive": 1
},
"message": "OK"
}
Error Response: If the task does not exist:
{
"code": 403,
"status": "error",
"message": "Not found"
}