Status
Available Status
None
Represent status of habit don't have any data for this specific day.
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 |
|
| |
target_value |
|
| |
unit_type |
| ||
periodicity |
| ||
reference_date |
|
|
Completed
Represent the completed status
completed
Properties
Name | Type | Required | Description |
current_value |
|
| |
target_value |
|
| |
unit_type |
| ||
periodicity |
| ||
reference_date |
|
|
Skipped
Represent the skipped status
skipped
Properties
Name | Type | Required | Description |
current_value |
|
| |
target_value |
|
| |
unit_type |
| ||
periodicity |
| ||
reference_date |
|
|
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: |
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