Moods
Properties
The table describes all properties of a Mood object.
Name
Type
Required
Description
id
String
required
value
String
required
created_at
Date
required
Available Methods
List Moods
GET
https://api.habitify.me/moods
Query Parameters
Name
Type
Description
target_date
string
Date Format
Headers
Name
Type
Description
Authorization
string
API Key
{
"message": "Success",
"data": [
{
"id": "-MaXOC3Ih05JnmVWhHy1",
"created_at": "2021-04-24T09:35:06.000Z",
"value": 1
}
],
"version": "v1.2",
"status": true
}
Get mood by id
GET
https://api.habitify.me/moods/:mood_id
Path Parameters
Name
Type
Description
mood_id
string
Headers
Name
Type
Description
Authorization
string
API Key
{
"message": "Success",
"data": {
"id": "-MaXOC3Ih05JnmVWhHy1",
"value": 1,
"created_at": "2021-04-24T09:35:06.000Z"
},
"version": "v1.2",
"status": true
}
Create a new mood
POST
https://api.habitify.me/moods
Headers
Name
Type
Description
Authorization
string
API Key
Request Body
Name
Type
Description
value
string
Only accept the value in Mood Value
created_at
string
Date Format
{
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}
Update mood
PUT
https://api.habitify.me/moods/:mood_id
Path Parameters
Name
Type
Description
mood_id
string
Headers
Name
Type
Description
Authorization
string
API Key
Request Body
Name
Type
Description
created_at
string
Date Format
value
string
Only accept the value in Mood Value
{
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}
Delete mood
DELETE
https://api.habitify.me/moods/:mood_id
Path Parameters
Name
Type
Description
mood_id
string
{
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}
Last updated
Was this helpful?