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

NameTypeDescription

target_date

string

Date Format

Headers

NameTypeDescription

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

NameTypeDescription

mood_id

string

Headers

NameTypeDescription

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

NameTypeDescription

Authorization

string

API Key

Request Body

NameTypeDescription

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

NameTypeDescription

mood_id

string

Headers

NameTypeDescription

Authorization

string

API Key

Request Body

NameTypeDescription

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

NameTypeDescription

mood_id

string

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

Last updated