Status

Available Status

None

Represent status of habit don't have any data for this specific day.

none

Example Response
{
  "status": "none"
}

In Progress

Represent status of habit have progressed in specific day, include the progress info.

in_progress

Properties

Name

Type

Required

Description

current_value

Double

required

target_value

Double

required

unit_type

required

periodicity

required

reference_date

Date

required

Completed

Represent the completed status

completed

Properties

Name

Type

Required

Description

current_value

Double

required

target_value

Double

required

unit_type

required

periodicity

required

reference_date

Date

required

Skipped

Represent the skipped status

skipped

Properties

Name

Type

Required

Description

current_value

Double

required

target_value

Double

required

unit_type

required

periodicity

required

reference_date

Date

required

Failed

Represent the failed status.

failed

Only users created before August 20, 2020, have this status enabled.

Available Methods

Get Habit Status

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

Path Parameters

Name
Type
Description

habit_id

string

Query Parameters

Name
Type
Description

target_date

string

Date Format

Headers

Name
Type
Description

Authorization

string

API Key

Update Habit Status

PUT https://api.habitify.me/status/:habit_id

Path Parameters

Name
Type
Description

habit_id

string

Headers

Name
Type
Description

Authorization

string

API Key

Request Body

Name
Type
Description

status

string

Available options: completed, skipped, none

target_date

string

Date Format

We only support you to update the status is completed if your habit does not have a goal. So if you want to complete the habit that has a goal. You should use Add Log to log your habit's progress.

Last updated

Was this helpful?