https://api.rentila.com/landlord/tasks
GET https://api.rentila.com/landlord/tasks
Retrieves a list of tasks assigned to the landlord.
If set to 1, fetches active tasks. If set to 0, fetches inactive tasks.
Filters tasks based on various criteria such as BuildingID, PropertyID, TenantID, or UserID.
Field to sort by. Allowed values: TaskID, TaskSubject, TaskActive. Default is TaskID.
Sorting order, either ASC or DESC. Default is DESC.
Page number for pagination. Default is 1.
Number of tasks per page. Defaults to system pagination settings.
{
"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"
}
GET https://api.rentila.com/landlord/tasks/{id}
Loads details of a specific task.
The ID of the task to retrieve.
{
"code": 200,
"status": "success",
"data": {
"TaskID": 12345,
"TaskSubject": "Repair Leak",
"TaskActive": 1
},
"message": "OK"
}
If the task does not exist:
{
"code": 403,
"status": "error",
"message": "Not found"
}