Logs

Properties

This table describes all properties of a Log object.

Available Methods

List Logs

GET https://api.habitify.me/logs/:habit_id

Path Parameters

Query Parameters

Headers

{
    "message": "Success",
    "data": [
        {
            "id": "-MaSwylmoPx9MNJlz4YU",
            "value": 1,
            "created_date": "2021-05-24T08:36:18.000Z",
            "unit_type": "step",
            "habit_id": "328B6E88-5DBA-4A21-8B0F-7A3DC5A2996C"
        },
        {
            "id": "-MabvNoRKmD7ylVeiveW",
            "value": 1,
            "created_date": "2021-05-24T08:36:18.000Z",
            "unit_type": "step",
            "habit_id": "328B6E88-5DBA-4A21-8B0F-7A3DC5A2996C"
        }
    ],
    "version": "v1.2",
    "status": true
}

Add Log

POST https://api.habitify.me/logs/:habit_id

Path Parameters

Headers

Request Body

{
    "message": "Success",
    "data": null,
    "version": "v1.2",
    "status": true
}

Delete Log

DELETE https://api.habitify.me/logs/:habit_id/:log_id

Path Parameters

Headers

{
    "message": "Success",
    "data": null,
    "version": "v1.2",
    "status": true
}

Delete Logs

DELETE https://api.habitify.me/logs/:habit_id

Path Parameters

Query Parameters

Headers

Success

Last updated