Actions List

Properties

The table describes all properties of an Action object.

Get Actions

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

This endpoint allows you to get actions of the habit

Path Parameters

Headers

{
    "message": "Success",
    "data": [
        {
            "id": "-MafYXR1HpPqaGEwvT4c",
            "remind_at": "2021-05-27T11:03",
            "status": 0,
            "title": "📕📕📕 Buy books",
            "updated_at": "2021-05-27T02:01:30.704Z",
            "habit_id": "DE02E6DE-6140-491E-8517-BFC0C6FD6B6D"
        }
    ],
    "version": "v1.2",
    "status": true
}

Get Action By Id

GET https://api.habitify.me/actions/:habit_id/:action_id

Action successfully retrieved.

Path Parameters

Headers

{
    "message": "Success",
    "data": {
        "id": "-MafYXR1HpPqaGEwvT4c",
        "remindAt": "2021-05-27T11:03",
        "status": 0,
        "title": "📕📕📕 Buy books",
        "updatedAt": "2021-05-27T02:01:30.704Z",
        "habitId": "DE02E6DE-6140-491E-8517-BFC0C6FD6B6D"
    },
    "version": "v1.2",
    "status": true
}

Create a new action

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

Create a new action of the habit successfully

Path Parameters

Headers

Request Body

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

Update Action

PUT https://api.habitify.me/actions/:habit_id/:action_id

Path Parameters

Headers

Request Body

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

DELETE https://api.habitify.me/actions/:habit_id/:action_id

Path Parameters

Headers

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

Last updated