Notes
Properties
This table describes all properties of a Note object.
Name | Type | Required | Description |
id |
|
| |
content |
|
| |
created_date |
|
| |
habit_id |
|
| |
note_type |
|
| |
image_url |
|
|
List Notes
GET
https://api.habitify.me/notes/:habit_id
Get all notes of the habit
Path Parameters
Name | Type | Description |
---|---|---|
habit_id | string | ID of habit |
Query Parameters
Name | Type | Description |
---|---|---|
from | string | Date Format |
to | boolean | Date Format |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | API Key |
Add Text Note
POST
https://api.habitify.me/notes/:habit_id
Append new note for specific habit
Path Parameters
Name | Type | Description |
---|---|---|
habit_id | string | The habit ID |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | API Key |
Request Body
Name | Type | Description |
---|---|---|
created | string | Date Format |
content | string | Content of the note you're adding |
Add Image Note
POST
https://api.habitify.me/notes/addImageNote/:habit_id
Path Parameters
Name | Type | Description |
---|---|---|
habit_id | string | |
Query Parameters
Name | Type | Description |
---|---|---|
created_at | string |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | API Key |
Request Body
Name | Type | Description |
---|---|---|
image | object | Only support JPG, JPEG format. The size of the image is smaller than 2MB. |
Delete Note
DELETE
https://api.habitify.me/notes/:habit_id/:note_id
Path Parameters
Name | Type | Description |
---|---|---|
note_id | string | Note ID |
habit_id | string | Habit ID |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | API Key |
Delete Notes
DELETE
https://api.habitify.me/notes/:habit_id
Path Parameters
Name | Type | Description |
---|---|---|
habit_id | string |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | API Key |
Request Body
Name | Type | Description |
---|---|---|
to | string | Date Format |
from | string | Date Format |
Last updated